CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Change Edit box color?

    Can you change the background color of an edit box? How would it be done?


  2. #2
    Join Date
    May 1999
    Location
    Houston - TX - US
    Posts
    29

    Re: Change Edit box color?

    Hi,
    Both the background n text color can be changed ! some code is there in the code section of this site. U can use that else let me know n I can mail U those files.
    Yash.



  3. #3
    Guest

    Re: Change Edit box color?

    Try using WM_CTL_COLOR method which you have to write for the dialog.Suppose the name of the Edit control is IDC_EDIT1 In that function give the following code:
    (pWnd->GetDlgCtrlID()==IDC_EDIT1 ) then Create Brush and do manipulation




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