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...
Type: Posts; User: SnarlingSheep
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...
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...
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.
To bring a window to the foreground, use SetForegroundWindow:
HWND solitaire = FindWindow(NULL,"Solitaire");
BOOL ret = SetForegroundWindow(solitaire);
Just an example:
http://www.thermaltake.com/coolers/aquarius/a1681.htm
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...
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...
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...
James Van Praagh
(You watch stupid shows when you can't sleep ;))