Sign in to follow this  
Idono87

[Windows]window handels & the WndProc

Recommended Posts

Idono87    101
I might have missed this when reading trought the various documents on how to program in windows.

Say i've created a main window with it's own WNDCLASS. And then i place a button in that window.
When i press the button dose the Window Procedure get the main window handel or dose it get the button handel as a parameter?

Share this post


Link to post
Share on other sites
Rattrap    3385
The button handles the click with it's own private window proc, then sends its parent window a message in the form of a [url="http://msdn.microsoft.com/en-us/library/ms647591(v=vs.85).aspx"]WM_COMMAND[/url].

[edit]
Changed main window to parent window Edited by Rattrap

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