【问题标题】:How to draw the bitmap icon on title bar when Windows Aero theme is enabled启用 Windows Aero 主题时如何在标题栏上绘制位图图标
【发布时间】:2016-03-22 05:15:12
【问题描述】:

我正在开发 MFC 应用程序(DWM 库不可用)。 我想在标题栏上绘制一个用作按钮的位图。 但是,在 Windows 7 中启用 Aero 主题时,位图不会出现(禁用 Aero 主题时没有问题)。 但是我的应用程序仍然可以通过单击位图的位置来做出反应。 谁能教我如何解决这个问题?

谢谢

【问题讨论】:

    标签: c++ visual-studio-2010 bitmap mfc aero


    【解决方案1】:

    在 MSDN 上描述了使用 DWM 将自定义数据绘制到框架区域中,其中还解释了命中测试:

    Custom Window Frame Using DWM

    如果您在 CodeProject 网站上搜索 DWM,您会发现一些对您有帮助的文章:

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

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

    【讨论】:

      猜你喜欢
      • 2011-05-06
      • 1970-01-01
      • 1970-01-01
      • 2011-05-13
      • 2012-08-23
      • 1970-01-01
      • 2010-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多