Jump to content
  • Advertisement
Sign in to follow this  
gargling_mayonnaise

SetWindowPos

This topic is 3700 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

this: SetWindowPos(hWnd, HWND_BOTTOM, r.left, r.top, r.right-r.left, r.bottom-r.top, SWP_NOREPOSITION | SWP_NOSIZE | SWP_NOZORDER | SWP_HIDEWINDOW | SWP_FRAMECHANGED ); followed by this: SetWindowPos(hWnd, HWND_BOTTOM, r.left, r.top, r.right-r.left, r.bottom-r.top, SWP_NOREPOSITION | SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW | SWP_FRAMECHANGED ); Crashes explorer.exe, any idea? -GM

Share this post


Link to post
Share on other sites
Advertisement
The first thing I'd do is run this in debug mode, and check out what the values are of your rectangle and hWnd. Then, clean the solution and rebuild it (often times, you'll need to close Visual Studio, and delete the ncb file and then reopen it to build the program).

It just sounds like you have some issues with your computer, as there appears to be nothing wrong with the flags, and I'm able to run a simple window fine with them set.

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!