• Advertisement
Sign in to follow this  

[Windows]window handels & the WndProc

This topic is 2371 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 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
Advertisement
The button handles the click with it's own private window proc, then sends its parent window a message in the form of a WM_COMMAND.

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement