Search:

Type: Posts; User: manuell

Search: Search took 0.00 seconds.

  1. Thread: Wm_timer

    by manuell
    Replies
    21
    Views
    7,097

    See InvalidateRect, second parameter (lpRect)...

    See InvalidateRect, second parameter (lpRect)
    http://msdn.microsoft.com/en-us/library/ms534893.aspx
  2. 1) The WM_CREATE message is processed during the...

    1) The WM_CREATE message is processed during the CreateWindowEx call. You store the module handle in hInc after that call, thus hInc is 0 when you call LoadBitmap. Add the line

    hInc = hInstance;...
  3. Replies
    10
    Views
    2,566

    http://msdn.microsoft.com/en-us/library/ms534858(V...

    http://msdn.microsoft.com/en-us/library/ms534858(VS.85).aspx
  4. Replies
    10
    Views
    2,566

    I would go for 2 controls at the same place, only...

    I would go for 2 controls at the same place, only one being visible. No drawing, just ShowWindow (but I'm lazy).
  5. Your WinMain function has a hThisInstance...

    Your WinMain function has a hThisInstance parameter, but choosing the same name won't magically update the global variable. You have to choose two different names, and explicitly store the handle in...
  6. I have "successfully" reproduced your problem,...

    I have "successfully" reproduced your problem, and fixed it:

    1) change the name of the global HINSTANCE variable. (eg: g_hThisInstance)
    2) add g_hThisInstance = hThisInstance; to your WinMain...
Results 1 to 6 of 6