salut
j'ai utilisé CBitmapButton sous XP/98 et aucun probleme. Ca marche impec.
je résume ce que j'ai fais :
- dans le .h :
Code:
1 2
| protected:
CBitmapButton button1; |
- dans le .cpp dans le constructeur je fais :
Code:
1 2 3 4 5
| if (!button1.LoadBitmaps(_T(IDB_NORMAL1), _T(IDB_ENFONCE1), _T(IDB_FOCUS1)))
{
TRACE0("Failed to load bitmaps for buttons\n");
AfxThrowResourceException();
} |
- dans le initdialog :
Code:
1 2
| VERIFY(button1.SubclassDlgItem(IDC_CONFIG, this));
button1.SizeToContent(); |
- et tu mets tes buttons en owner-draw
Voila j'ai rien du oublié :wink: