Sign in to follow this  
Igorium

Screensaver creation with VC++ 6

Recommended Posts

Igorium    122
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this