Menu

C + WinAPI question:

2002-12-26
2012-09-26
  • Nobody/Anonymous

    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?

     
    • Nobody/Anonymous

      Hey man,

      Actually WM_CREATE is only sent once before CreateWindow() / CreateWindowEx() returns. =)

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.