Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CStaic Problem Pin
Code-o-mat30-May-10 21:25
Code-o-mat30-May-10 21:25 
AnswerRe: CStaic Problem Pin
ThatsAlok30-May-10 21:27
ThatsAlok30-May-10 21:27 
QuestionGetFont() returning Null [modified] Pin
decoder_8530-May-10 19:26
decoder_8530-May-10 19:26 
AnswerRe: GetFont() returning Null Pin
ThatsAlok30-May-10 20:47
ThatsAlok30-May-10 20:47 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:36
decoder_8530-May-10 23:36 
GeneralRe: GetFont() returning Null Pin
KarstenK31-May-10 3:53
mveKarstenK31-May-10 3:53 
AnswerRe: GetFont() returning Null Pin
Code-o-mat30-May-10 21:32
Code-o-mat30-May-10 21:32 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:00
decoder_8530-May-10 23:00 
the code which i am using is

CWnd* p_Wnd;
CFont* pFont;
pFont = p_Wnd->GetFont();
LOGFONT m_lFontBold;

pFont->GetLogFont(&m_lFontBold);

I am getting error in getlogfont in debugging mode. As far my understanding the getfont() isn't returning the handle to the object that is why there is an assertion problem in getlogfont(). But the same code is working properly in different dialog boxes.
GeneralRe: GetFont() returning Null Pin
Code-o-mat30-May-10 23:26
Code-o-mat30-May-10 23:26 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:35
decoder_8530-May-10 23:35 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:38
decoder_8530-May-10 23:38 
GeneralRe: GetFont() returning Null Pin
Code-o-mat30-May-10 23:41
Code-o-mat30-May-10 23:41 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:55
decoder_8530-May-10 23:55 
GeneralRe: GetFont() returning Null Pin
Code-o-mat31-May-10 0:35
Code-o-mat31-May-10 0:35 
GeneralRe: GetFont() returning Null Pin
decoder_8531-May-10 3:01
decoder_8531-May-10 3:01 
GeneralRe: GetFont() returning Null Pin
Code-o-mat31-May-10 3:27
Code-o-mat31-May-10 3:27 
GeneralRe: GetFont() returning Null Pin
decoder_8531-May-10 18:25
decoder_8531-May-10 18:25 
GeneralRe: GetFont() returning Null Pin
Code-o-mat31-May-10 21:35
Code-o-mat31-May-10 21:35 
QuestionConvert character to other character [modified] Pin
MsmVc30-May-10 19:03
MsmVc30-May-10 19:03 
AnswerRe: Convert character to other character Pin
Akt_4_U30-May-10 19:46
Akt_4_U30-May-10 19:46 
GeneralRe: Convert character to other character Pin
MsmVc30-May-10 19:49
MsmVc30-May-10 19:49 
GeneralRe: Convert character to other character Pin
Akt_4_U30-May-10 19:54
Akt_4_U30-May-10 19:54 
GeneralRe: Convert character to other character Pin
MsmVc30-May-10 20:07
MsmVc30-May-10 20:07 
AnswerRe: Convert character to other character Pin
Stephen Hewitt30-May-10 20:06
Stephen Hewitt30-May-10 20:06 
GeneralRe: Convert character to other character Pin
MsmVc30-May-10 20:08
MsmVc30-May-10 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.