CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Location
    Singapore
    Posts
    57

    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.


  2. #2
    Join Date
    Jun 2001
    Location
    Lewes, UK
    Posts
    1,313

    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
  •  





Click Here to Expand Forum to Full Width

Featured