CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    9

    How to use bitmap as background for edit control?

    Hello all,
    How to use bitmap as background for edit control?
    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    67

    Subclass your control

    In your OnInitDialog you can receice your edit control and subclass it to your own CWnd Object. This CWnd object must handle the OnEraseBkGnd(). Here you can put code to draw a bitmap.

    If you only what a pattern brush or another color you can handle the OnCtrlColor() in your dialog class

    Hope this helps


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