Sign in to follow this  
andyr

Win32 controls inside a groupbox

Recommended Posts

I have a MDI child form with a groupbox control inside, inside the groupbox is a standard button. How do i handle the button click event for this button? Using WM_COMMAND as normal doesnt seem to work and im guessing its because the buttons a child of the groupbox and not of the mdi child window. How do i do this? Thanks

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
group boxes are just another type of button and should never be the parent or the owner of other controls that are considered to be on the same level as them. just make the MDI child window the parent and owner of the group box when it's created, just like the rest of the controls.

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