我看msdn上方法
// Create an icon button.
myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_ICON,
CRect(10,10,60,50), pParentWnd, 1);// Set the icon of the button to be the system question icon.
myButton.SetIcon( ::LoadIcon(NULL, IDI_QUESTION) );
我怎么就弄不出来呢?
// Create an icon button.
myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_ICON,
CRect(10,10,60,50), pParentWnd, 1);// Set the icon of the button to be the system question icon.
myButton.SetIcon( ::LoadIcon(NULL, IDI_QUESTION) );
我怎么就弄不出来呢?
解决方案 »
- 有一个iplimage,在opencv或win32中如何保存为32位或16位tif格式?
- 推荐一个跨平台socket封装库?
- 如何判断声明的HDC类的变量是否被初始化
- 数据库连接问题
- 〖VC聚贤庄〗,VC朋友的交流园地!QQ群:20451624
- 《com原理及应用》第四章代理存根dll的问题
- ocx上传服务器本地调用问题
- 序列求解 11 2 19 10 9 13 ? 8 14
- 如何在系统启动的时候让软件在前台运行,windows在后台运行,但是可以切换!
- DAO中如何将Mdb导出成Html,(在Open中使用Connect String不行)?
- 做个刷子.急!
- 为什么用FieldPtr是系统说没有定义?
CWnd *pDesktop = CWnd::GetDesktopWindow();
m_btnDeskTop.Create("hello",WS_VISIBLE|BS_PUSHBUTTON ,CRect(0,0,50,50),pDesktop,IDR_BUTTON);
m_btnDeskTop.SetIcon( ::LoadIcon(NULL, IDI_QUESTION) );