Sign in to follow this  

Screensaver creation with VC++ 6

Recommended Posts

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: = CS_PARENTDC; wc.lpszClassName = "Screen Savior"; GetClientRect(hWndParent, &rc); hWnd = CreateWindow("Screen Savior", "preview", WS_CHILD, rc.left,, rc.right-rc.left,, 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