locked
Would you need a "custom form" to do this please? RRS feed

  • Question

  •  

    Hi,

     

    The OP of the thread at>>

     

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1789699&SiteID=1

     

    wants to know how to change the Form Caption Bar Color, maybe the ActiveCaption.Color to some other color.

     

    I have looked at methods from Me.ActiveForm but is there a way of programatically changing this please?

     

    I am curious myself. Would it require a Windows API DLL function call?

     

     

     

    Regards,

     

    S_DS

     

    Thursday, June 28, 2007 12:20 AM

Answers

  • Hi S_DS,

     

    Based on your post,  I think you can handle the WM_NCPAINT message and set up an own hanler. It draws the title bar of the window. Here is example. It is C++ code. Hope this can help you.

    http://www.codeguru.com/code/legacy/dialog/DrawOnTitleBar_demo.zip

     

    Good luck 

     

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Tuesday, July 3, 2007 5:09 AM
    Moderator