[Windows]window handels & the WndProc

Started by
1 comment, last by Idono87 12 years, 7 months ago
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?
Idono! That's me!
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

"I can't believe I'm defending logic to a turing machine." - Kent Woolworth [Other Space]

Thanks. I found it on MSDN to get some in depth on how it works.
Idono! That's me!

This topic is closed to new replies.

Advertisement