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

    Color of edit box

    How can I change the color of an edit box?



  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Color of edit box

    Use the WM_CTLCOLOR-message.


  3. #3
    Join Date
    Apr 1999
    Location
    Campeche - Florianopolis - Sta. Catarina Island - Sta. Catarina State - Brazil, South
    Posts
    104

    Re: Color of edit box

    Your dialog can trap the WM_CTLCOLOR message.
    Look up the MFC Help file notes for CWnd::OnCtlColor().
    Before a control is about to paint itself, the parent
    window receives a chance to set its own default text color and background brush.

    Also, check out the Knowledge Base article Q117778,
    "Changing the Background Color of an MFC Edit Control."


    Cesario Simões, Jr.

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