Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetHwnd?

0 views
Skip to first unread message

ShipHead

unread,
Jan 31, 2004, 4:16:37 PM1/31/04
to
I have a dialog based application.
On the dialog I placed two group boxes.
Within these group boxes is where I want to draw stuff.
How do I get the hwnd for the a group box on the dialog box?
I presume I need to do this in the OnPaint method of the dialog.


Jeff Partch [MVP]

unread,
Jan 31, 2004, 4:28:20 PM1/31/04
to
"ShipHead" <GoA...@SpamBoy.com> wrote in message
news:%23dhla%23D6DH...@tk2msftngp13.phx.gbl...

> How do I get the hwnd for the a group box on the dialog box?

Using GetDlgItem is one way, using a control member variable is another.
--
Jeff Partch [VC++ MVP]


0 new messages