Bitmapped Buttons
Set your button up in the menubar. Then somewhere in your code you''ve got to call:
m_BitmapV.LoadBitmap(IDB_VIDEOSETTINGS);
m_VideoBtn.SendMessage(BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)(HBITMAP)m_BitmapV);
where m_BitmapV is a CBitmap object and m_VideoBtn is your CButton object.
Basically, your sending the button a message telling it to load a bitmap
I did this in a dialog, you''ll need to finagle it around a little for menu bars.
John G.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement