Changing the Color of the caption bar

Hi all,
     I am C++ programmer and graduated to VC++. I am developing some skins in VC++.
Has any one tried to change the color of the cation bar, in other words has any one given your own look and feel color effect for the caption bar of a dialog.Even a small idea would help alot.

Thanks in advance
Raj


Answer this question

Changing the Color of the caption bar

  • am2112rush

    Thank u,
                just i will try today and let u know. Hope it works.

    Regards
    Raj

  • TimurKiykioglu

    In my class wizad WM_NCPAINT is shown! What VS do you use. The old VC6 has a filter function that reduces the number of messages shown by the classwizard. See the last property page of the classwizards dialog.

    And even if the classwizard does not show the WM_NCPAINT handle, you can use it. Set the Handler in the message map and write your code...
    WM_NCPAINT is the answer for your problem!

  • JP Gonzalez - MSFT

    Thank u for replying Martin,
               As i said i am new to VC++ programming, i just searched through the MSDN library and tried to handle this message WM_NCPAINT but in my class wizard it did not show this message under the list of available messages that can be handled.Other than that i guess WM_NCPAINT message is only for custom windows but not for Dailog captionbar. So still i have not got any solution for this. Any suggestions are wellcome.

    Thanks again
    Raj

  • Andrew Zhu

    Search in the MSDN for WM_NCPAINT.
    You can also look at www.codeproject.com or at this code from Paul DiLascia even it is a little bit older:
    http://www.microsoft.com/msj/0697/c0697.aspx

  • Syed Hasnain Ali

    Thank u dear friends,
              WM_NCPAINT done the job for me. I was able to  place a bitmap image on the captionbar and strech it.

    Regards
    Raj


  • Changing the Color of the caption bar