Screensaver creation with VC++ 6

Started by
0 comments, last by Endurion 19 years, 6 months ago
Hi I'm not using scrnsave.lib, Win32 API only. When I try to create a preview window as a child window (parent hwnd from /p:####), it creates nothing and GetLastError returns something ineligible. The parent window handle is returned correctly - I checked it with WinSpy. The code piece: wc.style = CS_PARENTDC; wc.lpszClassName = "Screen Savior"; GetClientRect(hWndParent, &rc); hWnd = CreateWindow("Screen Savior", "preview", WS_CHILD, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, hWndParent, NULL, hInst, NULL); hInst is for instance of my saver. What is the problem?
Advertisement
Try including WS_VISIBLE as style.

Maybe the Windowproc does return the wrong value.
What exactly does GetLastError return?

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

This topic is closed to new replies.

Advertisement