CBitmap BMP.
BMP. LoadBitmap (IDB_BITMAP1);
CButton * pButton=(CButton *) GetDlgItem (IDC_BUTTON1);
PButton - & gt; ModifyStyle (0, BS_BITMAP);
PButton - & gt; SetBitmap (BMP);
CodePudding user response:
Scope of might be the problem?The static CBitmap BMP. BMP. DeleteObject ();
BMP. LoadBitmap (IDB_BITMAP1);
CodePudding user response:
BMP to member variables, or global variableCodePudding user response:
Should be xp does not support it, as this button displays a bitmap needs to be redrawn, such effect is consistent on all machines