Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Display Message Pin
prasad_som28-Jan-07 5:32
prasad_som28-Jan-07 5:32 
AnswerRe: Display Message Pin
jon_fallon28-Jan-07 5:42
jon_fallon28-Jan-07 5:42 
GeneralRe: Display Message Pin
Mark Salsbery28-Jan-07 7:12
Mark Salsbery28-Jan-07 7:12 
AnswerRe: Display Message Pin
Anilkumar K V28-Jan-07 21:57
Anilkumar K V28-Jan-07 21:57 
QuestionWM_INIT or something like that....? [modified] Pin
Makakuin28-Jan-07 5:07
Makakuin28-Jan-07 5:07 
AnswerRe: WM_INIT or something like that....? Pin
prasad_som28-Jan-07 5:18
prasad_som28-Jan-07 5:18 
GeneralRe: WM_INIT or something like that....? Pin
Makakuin28-Jan-07 5:22
Makakuin28-Jan-07 5:22 
GeneralRe: WM_INIT or something like that....? Pin
Waldermort28-Jan-07 6:32
Waldermort28-Jan-07 6:32 
prasad_som wrote:
See OnInitialUpdate.


That must an MFC thing.

To the op:
WM_CREATE and WM_CREATEDIALOG are sent during the call to CreateWindow() and CreateDialog(). The window is not created until after these messages have been processed. So it's not the best of places to initialize window dependent data.

One method I often use, from the WM_CREATE handler, call PostMessage() with your own WM_APP + XXX message. This is guarenteed to be the first message you get making it perfect for setting any data.
AnswerRe: WM_INIT or something like that....? Pin
prasad_som28-Jan-07 18:44
prasad_som28-Jan-07 18:44 
QuestionPorting Visual Studio 6 Application Pin
Blamor28-Jan-07 3:54
Blamor28-Jan-07 3:54 
AnswerRe: Porting Visual Studio 6 Application Pin
Cedric Moonen28-Jan-07 5:04
Cedric Moonen28-Jan-07 5:04 
QuestionButton to next form/popup Pin
Twalgering28-Jan-07 0:25
Twalgering28-Jan-07 0:25 
GeneralRe: Button to next form/popup Pin
Twalgering29-Jan-07 5:52
Twalgering29-Jan-07 5:52 
QuestionSend Sound to SoundCard Pin
A_Fa27-Jan-07 18:44
A_Fa27-Jan-07 18:44 
AnswerRe: Send Sound to SoundCard Pin
#realJSOP28-Jan-07 0:42
mve#realJSOP28-Jan-07 0:42 
GeneralRe: Send Sound to SoundCard Pin
A_Fa28-Jan-07 1:22
A_Fa28-Jan-07 1:22 
GeneralRe: Send Sound to SoundCard Pin
#realJSOP28-Jan-07 2:54
mve#realJSOP28-Jan-07 2:54 
GeneralRe: Send Sound to SoundCard Pin
A_Fa28-Jan-07 4:01
A_Fa28-Jan-07 4:01 
GeneralRe: Send Sound to SoundCard Pin
#realJSOP28-Jan-07 5:09
mve#realJSOP28-Jan-07 5:09 
Questionbasic vc++ Pin
Sonipriya27-Jan-07 18:23
Sonipriya27-Jan-07 18:23 
AnswerRe: basic vc++ Pin
Hamid_RT27-Jan-07 18:53
Hamid_RT27-Jan-07 18:53 
AnswerRe: basic vc++ Pin
Christian Graus28-Jan-07 0:33
protectorChristian Graus28-Jan-07 0:33 
GeneralRe: basic vc++ Pin
Rajesh R Subramanian28-Jan-07 3:55
professionalRajesh R Subramanian28-Jan-07 3:55 
AnswerRe: basic vc++ Pin
Sceptic Mole29-Jan-07 3:16
Sceptic Mole29-Jan-07 3:16 
GeneralRe: basic vc++ Pin
Mark Salsbery29-Jan-07 7:42
Mark Salsbery29-Jan-07 7:42 

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.