Search:

Type: Posts; User: SnarlingSheep

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,119

    You also need to register the class for the child...

    You also need to register the class for the child window..here's a short example:


    LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam)
    {
    switch (msg) {
    case...
  2. Replies
    13
    Views
    2,119

    My point is that it needs to be set to the...

    My point is that it needs to be set to the HINSTANCE of the parent, instead of just being empty.. actually easier to just use a global variable that holds the parent's hinstance, usually hInst in my...
  3. Replies
    13
    Views
    2,119

    I may be wrong, but I think hInstance needs to be...

    I may be wrong, but I think hInstance needs to be set to the HINSTANCE of the parent. You are defining it, but not setting it to anything.
  4. Replies
    2
    Views
    858

    To bring a window to the foreground, use...

    To bring a window to the foreground, use SetForegroundWindow:


    HWND solitaire = FindWindow(NULL,"Solitaire");
    BOOL ret = SetForegroundWindow(solitaire);
  5. Replies
    6
    Views
    1,009

    Just an example:...

    Just an example:
    http://www.thermaltake.com/coolers/aquarius/a1681.htm
  6. Replies
    3
    Views
    1,289

    I agree with ober about the drivers most likely...

    I agree with ober about the drivers most likely being the problem, but I would try a good registry cleaner before changing any drivers. That seemed to be the solution in the cases I read about.
    jv16...
  7. Replies
    8
    Views
    2,720

    This is what ListView_SetCheckState is defined as...

    This is what ListView_SetCheckState is defined as in WIN.H here:

    #define ListView_SetCheckState(h,i,f) ListView_SetItemState(h,i,INDEXTOSTATEIMAGEMASK((f)?2:1),LVIS_STATEIMAGEMASK)
    You could try...
  8. Replies
    8
    Views
    2,720

    Actually there is, and it works fine for me: ...

    Actually there is, and it works fine for me:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/macros/listview_setcheckstate.asp
    You can also send...
  9. Replies
    15
    Views
    5,182

    James Van Praagh (You watch stupid shows when...

    James Van Praagh
    (You watch stupid shows when you can't sleep ;))
Results 1 to 9 of 9