How to change color of MS windows button control?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

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

  1. #1
    Join Date
    Feb 2013
    Posts
    9

    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,512

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


  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,352

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center