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
    Location
    Stockholm\Sweden
    Posts
    16

    Q : Bk Color in a CEdit View

    Hi there Gurus and everyone else for that matter...

    The Question I have is... How do I change the background color ( and perhaps the text color )in a CEdit derived view.

    To begin with, I have tried to catch some Windows msg:s like =WM_CTLCOLOR and WM_CTLCOLOR with poor result.

    I also tried to tweak the OnDraw and in pure desperation the OnPaint functions.....

    But it wont work.
    The only result i get is that my app changes the background color to the one that i decided if the view is new ( empty ).

    But if i open a new one it seems to default to white Bk and black text color.

    and thats not what i want....

    So ... if anyone would know how to fix this ...please tell me .....

    //Mooosie the frustrated Elk... :-)


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

    Re: Q : Bk Color in a CEdit View

    Hi ,
    There is some code in this site for that problem. I think the files needed are "Editex.CXX" and "EditEx.Hxx" . So seracg for that in the Source Code section and I hope U will be able to solve ur problem real quick!
    Good Luck.
    Yash.


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