Sign in to follow this  

Prevent focus from going to a window on creation.

This topic is 2958 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 which I used WS_EX_NOACTIVATE on and it works to prevent focus from going to that window on mouse clicks but when the window is created focus still goes to it, how do I fix this?

Share this post


Link to post
Share on other sites
Quote:
Original post by Martee
Sounds like you are looking for the SW_SHOWNOACTIVATE flag in your call to ShowWindow().


Yeah that work! Thanks, I thought it would have been a window style.

Share this post


Link to post
Share on other sites

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