Sign in to follow this  

WS_POPUP and WM_SETFOCUS

This topic is 2491 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 use the WM_KILLFOCUS message to release the mouse and show the cursor when the user Alt-Tab away from the window.
Also if in fullscreen mode i restore the display settings to windows normal mode and minimize the window.

Then in WM_SETFOCUS i capture the mouse and hides the cursor.
And if in fullscreen mode i set the display settings to the fullscreen mode.

The problem is when i destroy a normal window and create a fullscreen window.
I never recieve a WM_SETFOCUS when i create a new window using WS_POPUP.

Any suggestions?

Share this post


Link to post
Share on other sites
I found the problem!

Seems like you have to use: [font="Consolas"][size="2"][font="Consolas"][size="2"]WS_POPUP | WS_DISABLED and then use ShowWindow() on Windows 7 to get it working.[/size][/font][/size][/font]

Share this post


Link to post
Share on other sites
Don't use WM_SETFOCUS/WM_KILLFOCUS for this. Use WM_ACTIVATEAPP.

Also what API are you using? With Direct3d you don't have to take care of entering/leaving fullscreen mode manually if the app is switched to/from.

Share this post


Link to post
Share on other sites

This topic is 2491 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this