Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a Windows API Window. I've managed to make it windowed, and "fullscreen windowed". But I can't seem to make the window just full-screen- for example, even if I specify WS_POPUP, I can still freely move the cursor to my second screen. However, if I launch full-screen games, they don't permit it, and exist only exclusively or minimized. How can I make a window that behaves this way?

Edit: Excuse me. Limiting the mouse movement was just one example of how a full-screen window behaves differently to a non-fullscreen window, I'm not looking for how to limit the mouse movement.

Or is this set in the D3DPRESENT_PARAMETERS, rather than just communicated?

share|improve this question
up vote 1 down vote accepted

Yeah, D3DPRESENT_PARAMETERS has a BOOL called "Windowed" in it; you want to set that to false at the time you make your call to CreateDevice on your IDirect3D9 pointer.

share|improve this answer

Limiting the mouse movement has previously been discussed here: Mouse aim in an FPS

share|improve this answer
Limiting the mouse movement is only one aspect of an exclusive full-screen game. – DeadMG May 30 '11 at 21:43
@DeadMG The question mainly seems to ask about the mouse aspect. It sounds like your creating your window ok (to cover the screen), then you also need to set "windowed" to false in the present parameters along with the width and height to the size of the screen. I don't have the SDK docs to hand but I'm pretty sure they talk you through all this stuff. – Roger Perkins May 30 '11 at 21:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.