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

Painting child controls on Custom Drawn Control..

1 view
Skip to first unread message

djohnson

unread,
Jun 9, 2003, 10:11:27 PM6/9/03
to
How does one go about painting a child control of a custom-drawn control?
example:
lets say I have an almost entirely custom drawn control that has a textbox
control in the middle of it.
how would I go about drawing the custom portion of the control while
allowing the textbox control to draw itself?
i.e. assuming this is required in order to allow the textbox to be
functional.

Thanks in advance.
David Johnson


Alex Yakhnin [MVP]

unread,
Jun 10, 2003, 6:38:45 AM6/10/03
to
Override OnPaint event of your "custom" control and do all your painting
there.
The TextBox "inside" of your control will paint itself...

--
Alex Yakhnin, eMVP
Windows CE Program Manager
IntelliProg, Inc.
http://www.intelliprog.com


"djohnson" <dgj...@NOSPAMsonic.net> wrote in message
news:j7bFa.1077$%3.9...@typhoon.sonic.net...

0 new messages