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

    changing color and font in read-only edit

    How can I change the font size and text color and background color in a Read Only
    Edit Box


  2. #2
    Join Date
    Jun 1999
    Posts
    319

    Re: changing color and font in read-only edit

    For changing the color in a edit control override the WM_CTLCOLOR for your edit (so you need a derived class from the CEdit).
    To change its font use CWnd::SetFont function.
    Let me know if this helps you.
    Best regards,
    Faby


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