Jump to content
  • Advertisement
Sign in to follow this  
Igorium

Screensaver creation with VC++ 6

This topic is 5000 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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: 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!