Jump to content
  • Advertisement
Sign in to follow this  
bengaltgrs

Full Screen Issues

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

I have a window that is running at full screen, but if you move the mouse to the top and drag, it will grab the top of the window and actually allow you to drag and/or minimize. Direct Input is enabled and I was wondering if there was a way to fix the problem so the mouse can only interact within the window.

Share this post


Link to post
Share on other sites
Advertisement
Ya, I'm having the same issue. I'm using BCB6 w/o DirectImput, and I can drag parts of the screen around. Are you using DD or D3D?

Share this post


Link to post
Share on other sites
I'm using D3D, but I have found the problem. In the creation of the window I had it set for "WS_EX_TOPMOST". I changed it to "WS_POPUP" and it works perfect.

Share this post


Link to post
Share on other sites
Yeah, the part of the code you change isn't part of D3D or DD, it's in the actual creation of the application window. Just look through the code till you see something like this:

HWND hwnd = 0;
hwnd = ::CreateWindow("Window Name", "Title",
WS_POPUP,
0, 0, width, height,
0 , 0 , hInstance, 0 );

And just change that third part to "WS_POPUP".

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!