Sign in to follow this  
Aprosenf

Windows are not receiving WM_NCACTIVATE message

Recommended Posts

Aprosenf    372
I have a main window, and it has a bunch of child windows. Those child windows are being created with the WS_OVERLAPPEDWINDOW | WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE styles. However, when the windows are created, they are not activated, but I can still move them around and resize them. Additionally, if one child window is behind another and I move or resize the one in back, I see it get moved or resized, but it isn't moved in front of the other window until after the move or resize is finished. I'm pretty sure this is all a result of the child windows never getting an WM_NCACTIVATE message. What would cause this, and how do I fix it?

Share this post


Link to post
Share on other sites
Aprosenf    372
No, that doesn't help. If I create the child without the WS_CHILD flag, then it has the proper behavior, except when a child window is active, the main window becomes inactive, which is not something I want.

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