Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
decoder_85 wrote:
so why is it working for the button control and not for the static text control

-because of their different implementation i supose

decoder_85 wrote:
and also this static text control thing do work in different dialog classes

-i can't tell you that without seeing the whole picture


decoder_85 wrote:
and I havent explicitly called the WM_getfont for those classes

-CWnd::GetFont(), which is inherited by the CDialog, is just a wrapper around WM_GETFONT, if you call it, WM_GETFONT is sent to the control, and on the handle it returns CFont::FromHandle is called, you can check that yourself if you take a peek at CWnd::SetFont's implementation (try right-clicking it in visual studio and select "Go to definition" or somesuch)
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <

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 
QuestionIs CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 3:19
Code-o-mat30-May-10 3:19 
AnswerRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Aescleal30-May-10 9:32
Aescleal30-May-10 9:32 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 10:09
Code-o-mat30-May-10 10:09 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Aescleal30-May-10 10:19
Aescleal30-May-10 10:19 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 10:25
Code-o-mat30-May-10 10:25 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Aescleal30-May-10 10:29
Aescleal30-May-10 10:29 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 11:14
Code-o-mat30-May-10 11:14 
QuestionIs this multi-threading samples is the bug of vc6 ? Pin
wangningyu30-May-10 2:47
wangningyu30-May-10 2:47 
AnswerRe: Is this multi-threading samples is the bug of vc6 ? Pin
Aescleal30-May-10 9:26
Aescleal30-May-10 9:26 
AnswerRe: Is this multi-threading samples is the bug of vc6 ? Pin
Stephen Hewitt30-May-10 14:25
Stephen Hewitt30-May-10 14:25 

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.