SetFont doesn't work |
Post Reply |
Author | |
navap
Groupie Joined: 11 June 2019 Location: India Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 11 June 2019 at 6:21am |
I am using CXTPToolTipContext object to display tooltip in my code, However when I try to create a new font and try to set font it fails to display any tooltip . However when I comment out the set font ,everything works fine .
Code : CFont *cf =new CFont(); cf->CreateFont(-12, 5, 0, 0, FW_LIGHT, 0, 0, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, 0, "MS UI Gothic"); m_ToolTip.SetFont(cf); |
|
Thanks,
Navap |
|
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(0)
|
The code you posted is not checking the return code of CreateFont(), so are you sure the font was created?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |