HICON Rotatexbmp = ::LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_ROTATE_X));
Rotatex.Create("", WS_VISIBLE | WS_CHILD, CRect(3, 50, 35, 83), this, IDC_SIDEPANEL_ROTATE_X);
Rotatex.SetIcon(Rotatexbmp);
where IDI_ROTATE_X is a 32x32 Icon in my Resouces...
It compiles fine, but it just shows a normal button without the Icon in it.... I also tried to make the button bigger 'cause i though the bitmap was bigger than the button. (CRect(3, 50, 135, 183)) but that didn't work either....
any help appreciated...
thx,
cya,
Phil
Visit Rarebyte!
and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states
Edited by - phueppl1 on 9/24/00 3:17:03 PM
CButton and Bitmaps....
Hi there!
I'm trying to add a Button to my "Sidepanal" (UI on the side, CFormView derived).
I use this code:
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )
In fact you want to add a kind of image button to a panel. I''ve done some things like that, but I used bmp files as ressources, but I think it is the same. So first you have do add to your button style the "OWNER_DRAW" flag. If it doesn''t work anymore tell me, I could give my personal button class.
You can download a demo that use such kind of button on
My Web Page
You can download a demo that use such kind of button on
My Web Page
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement