CButton myButton;// Create a bitmap button. myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_BITMAP, CRect(10,10,60,50), pParentWnd, 1);// Set the bitmap of the button to be the system check bitmap. myButton.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_BITMAP,
CRect(10,10,60,50), pParentWnd, 1);// Set the bitmap of the button to be the system check bitmap.
myButton.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
然后响应WM_CTLCOLORBTN消息
myButton.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );中
MAKEINTRESOURCE(OBM_CHECK)) 是什么意思啊?
怎么用我自己的位图替换啊?
但是运行时系统报错,只能终止。
怎么解决啊?
现在想转VC