Help GWLP_USERDATA
-
SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) content);
content = (Content *) GetWindowLongPtr(hWnd, GWLP_USERDATA);the above code works in window created using CreateWindow, but the same code fails when used with DialogBox. Is there any alternative to this. I want to store Pointer to a structure. using Win32 C++. please guide.
Regards, Vishal
-
SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) content);
content = (Content *) GetWindowLongPtr(hWnd, GWLP_USERDATA);the above code works in window created using CreateWindow, but the same code fails when used with DialogBox. Is there any alternative to this. I want to store Pointer to a structure. using Win32 C++. please guide.
Regards, Vishal
-
SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) content);
content = (Content *) GetWindowLongPtr(hWnd, GWLP_USERDATA);the above code works in window created using CreateWindow, but the same code fails when used with DialogBox. Is there any alternative to this. I want to store Pointer to a structure. using Win32 C++. please guide.
Regards, Vishal