Connecting Tech Pros Worldwide Forums | Help | Site Map

SetBitmap doesn't work on Group-Box Control

larry
Guest
 
Posts: n/a
#1: Nov 7 '06
I'm trying to display a bit map on a group -box control instead of text
caption.

1)I created a bitmap in resource: IDB_BITMAP_BLUE
2)I set Bitmap property to true for the group box control.
3)I added a control variable for group box control: m_ctrlBlue



I used following code

HINSTANCE hinst=AfxGetInstanceHandle();
m_ctrlBlue.SetBitmap(LoadBitmap(hinst,MAKEINTRESOU RCE(IDB_BITMAP_BLUE))
);

But I can not see the bitmap. Please help me. Thanks ahead



Larry

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Jeff Partch
Guest
 
Posts: n/a
#2: Nov 8 '06

re: SetBitmap doesn't work on Group-Box Control


I don't think there's any internal support for the BS_GROUPBOX|BS_BITMAP
style combination.
--
Jeff Partch [VC++ MVP]

"larry" <laurence.chang@rogers.comwrote in message
news:OukDmKoAHHA.4348@TK2MSFTNGP04.phx.gbl...
Quote:
I'm trying to display a bit map on a group -box control instead of text
caption.
>
1)I created a bitmap in resource: IDB_BITMAP_BLUE
2)I set Bitmap property to true for the group box control.
3)I added a control variable for group box control: m_ctrlBlue
>
>
>
I used following code
>
HINSTANCE hinst=AfxGetInstanceHandle();
m_ctrlBlue.SetBitmap(LoadBitmap(hinst,MAKEINTRESOU RCE(IDB_BITMAP_BLUE))
);
>
But I can not see the bitmap. Please help me. Thanks ahead
>
>
>
Larry
>
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Closed Thread