Problem with CXTButto::SetIcon |
Post Reply |
Author | |
linfan
Newbie Joined: 05 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 12 April 2007 at 9:40pm |
I have some buttons (use CXTButton) in my application, and I've stored all the icons (32bits) they need in a CImageList, so I use the following code to set icon of the buttons.
for (int i...) { m_btn.SetIcon(szIcon, m_imglstButtons.ExtractIcon(i)); } It works. The problem is that when I disable a button, the grey icon shows with a black background, what's wrong? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
For alpha icons you can't set HICON. You can load bitmap:
m_btn1.SetBitmap(0, IDB_ALPHA_SETTINGS);
or use CXTPImageManager.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |