CStatic myStatic;// Create a child bitmap static control. myStatic.Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, CRect(10,10,150,50), pParentWnd);// Set the bitmap of the static control to be the // system check- bitmap. myStatic.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
不是要从外部LOAD么 SetBitmap 可以么
派生自己的类 实现WM_DRAWITEM read .bmp file GetWindowRect(&m_rect); then BitBlt()....
myStatic.Create(_T("my static"),
WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, CRect(10,10,150,50),
pParentWnd);// Set the bitmap of the static control to be the
// system check- bitmap.
myStatic.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
SetBitmap 可以么
实现WM_DRAWITEM
read .bmp file
GetWindowRect(&m_rect);
then BitBlt()....