How to draw the bitmap icon on title bar when Windows Aero theme is enabled

后端 未结 1 685
忘了有多久
忘了有多久 2021-01-23 02:55

I\'m developing a MFC application (DWM library is not available). I want to draw a bitmap functioning as a button on the title bar. However, the bitmap won\'t

1条回答
  •  孤街浪徒
    2021-01-23 03:57

    Drawing custom data into the frame area with DWM is described on MSDN, also the hit testing is explained there as well:

    Custom Window Frame Using DWM

    If you search for DWM on the CodeProject site you find some articles that will help you:

    Vista Goodies in C++: Using Glass in Your UI

    Draw custom caption with bitmap in Windows 7/Vista Aero theme

    0 讨论(0)
提交回复
热议问题