开发者

What class/control is used when you place a Picture in a MSVC++ dialog template?

开发者 https://www.devze.com 2023-01-05 09:27 出处:网络
I\'ve not been able to find th开发者_运维技巧is out, which seems weird. When I add a class variable for the control using the wizard, it wants to add a CButton. Is there a specific control or does one

I've not been able to find th开发者_运维技巧is out, which seems weird. When I add a class variable for the control using the wizard, it wants to add a CButton. Is there a specific control or does one of the basic ones provide this function?


If you want to display an icon or a bitmap in your dialog, you usually want to use a CStatic control. A CStatic can either display an HICON or an HBITMAP, see CStatic::SetBitmap and CStatic::SetIcon. It's also possible to directly choose an icon or image resource for the control in the dialog editor.

0

精彩评论

暂无评论...
验证码 换一张
取 消