When i call ShowWindow(), a wm_create message is generated right? So if my code has a "case wm_create" at my messages switch, and i need to run a function (bleh() ) before my controls are created (at wm_create) i definetely need to put this function (bleh() ) before ShowWindow(), am i correct?
Im sorry if it does not sound very clear, im a beginner on C and API programming and also english is not my native language. Maybe the real point of this question would be: Should i trust that my code will be run in the exact same sequence as i wrote it or not?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When i call ShowWindow(), a wm_create message is generated right? So if my code has a "case wm_create" at my messages switch, and i need to run a function (bleh() ) before my controls are created (at wm_create) i definetely need to put this function (bleh() ) before ShowWindow(), am i correct?
Im sorry if it does not sound very clear, im a beginner on C and API programming and also english is not my native language. Maybe the real point of this question would be: Should i trust that my code will be run in the exact same sequence as i wrote it or not?
Hey man,
Actually WM_CREATE is only sent once before CreateWindow() / CreateWindowEx() returns. =)
Kip