Jump to content
  • Advertisement
Sign in to follow this  

Screensaver creation with VC++ 6

This topic is 5450 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!