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

    How to change color of MS windows button control?

    Hi,

    I am writing a GUI application with the help of C++ Visual component Librariries and Win32API under windows OS.
    As part of this app, I have to change color of the MS Windows button control depending on the external state.
    I understood, Win32 will not support changing button control color directly as it will not support for this.
    Can any one suggest me how to change the button color and please let me know where I can find good explanation about it?

    Thanks in advance..

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: How to change color of MS windows button control?


  3. #3
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How to change color of MS windows button control?

    You will need to use owner drawn button:
    http://msdn.microsoft.com/en-us/libr...wnerdrawn_user
    Victor Nijegorodov

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