Bucko
2003-07-14 21:37:04 UTC
Hi
In Charlez Petzold's book "Programming Windows 5th Edition" he creates an
application called checker 3. This displays a grid of child windows, that
you can click on and they will fill in with an X shape. Now, in a later
chapter, Petzold says "If we wanted to, we could add a facility to ChildProc
to send a message to its parent window procedure (WndProc) whenever a
rectangle is checked or unchecked" I understand (and indeed have
implemented) this concept. However he also says "Perhaps for this message
the child window could set wParam to its child window ID" Now, this is
exactly what I want to do, but I cant for the life of me find out how to get
the child window ID variable in ChildProc, where is it? How do I set wParam
(or indeed any variable) to the child window ID within ChildProc?
Appreciate any help anyone can offer!
Thanks
Matt
In Charlez Petzold's book "Programming Windows 5th Edition" he creates an
application called checker 3. This displays a grid of child windows, that
you can click on and they will fill in with an X shape. Now, in a later
chapter, Petzold says "If we wanted to, we could add a facility to ChildProc
to send a message to its parent window procedure (WndProc) whenever a
rectangle is checked or unchecked" I understand (and indeed have
implemented) this concept. However he also says "Perhaps for this message
the child window could set wParam to its child window ID" Now, this is
exactly what I want to do, but I cant for the life of me find out how to get
the child window ID variable in ChildProc, where is it? How do I set wParam
(or indeed any variable) to the child window ID within ChildProc?
Appreciate any help anyone can offer!
Thanks
Matt