|
-
August 31st, 2001, 08:06 PM
#1
Owner drawn cedit
Hi all, i wish to draw a round shaded rectangle frame around a cedit control, how do I override
the cedit class so that i can draw the frame myself and offset the actual text output rect to some
where in the center (or to anywhere within the round frame).
You can imagine this as draw a bitmap round rect frame around the cedit which is borderless.
-
August 31st, 2001, 11:12 PM
#2
Re: Owner drawn cedit
Derive a class from CEdit and handle WM_NCPAINT, with your own code to paint the frame.
Hope this helps
Eugene Gill
Please take the time to rate this answer if you found it useful. It will make me a happy man!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|