Getting modern system icons with LoadIcon

前端 未结 1 2008
花落未央
花落未央 2021-01-25 18:42

I\'m using LoadIcon for loading system icons such as the \"Attention\" sign. This works fine, but this gives me the icon with the old (I think) Windows 7 look.

My progra

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-25 18:48

    I saw that MessageBoxW uses the LoadIconWithScaleDown function for loading icons instead of LoadImage or LoadIcon. With standard icon IDs (from 0x7f00 (IDI_APPLICATION..IDI_SHIELD) this function actually loads images from imageres.dll (while LoadImage loads them from user32.dll).

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