Sign in to follow this  

Keeping Focus

Recommended Posts

I have a standard win32 application (c++, no MFC) where in the WM_CREATE message of the WndProc, I create a non-modal dialog box in the main client area of the window using CreateDialog, for the main interface of the program. I know it's only a visual thing, but when the dialog box is clicked, the main window (title bar etc.) loses focus and greys out. Is there a way to keep the focus with the main window, when using the dialog box?

Share this post

Link to post
Share on other sites

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