Jump to content
  • Advertisement
Sign in to follow this  
Idono87

[Windows]window handels & the WndProc

This topic is 2552 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!