Click here to Skip to main content
15,907,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Button with Bitmap Pin
Member 25795612-May-03 0:20
Member 25795612-May-03 0:20 
GeneralRe: Button with Bitmap Pin
Member 25795612-May-03 0:23
Member 25795612-May-03 0:23 
GeneralRe: Button with Bitmap Pin
David Crow12-May-03 2:34
David Crow12-May-03 2:34 
GeneralCFile trouble Pin
macmac3812-May-03 0:10
macmac3812-May-03 0:10 
GeneralRe: CFile trouble Pin
Hari Krishnan (Noida)12-May-03 0:39
Hari Krishnan (Noida)12-May-03 0:39 
GeneralRe: CFile trouble Pin
macmac3812-May-03 1:07
macmac3812-May-03 1:07 
GeneralCImagelist and CListCtrl problem. Pin
justin22311-May-03 23:57
justin22311-May-03 23:57 
GeneralRe: CImagelist and CListCtrl problem. Pin
Debs12-May-03 1:00
Debs12-May-03 1:00 
You are setting the transparency colour to be the bright pink that has
RGB(255,0,255). It's what I do in my code, as it's not a colour I use normally in the actual bitmap.

Snip of code that works for me:


	m_ImageList.Create(IDB_ALARMBANNER ,16,32,RGB(255,0,255));<br />
	m_nImageIndex[IMAGE_ALARMBANNER] = nImageIndex++; //array used to reference the image<br />
<br />
	AddBitmapToList(m_ImageList,IDB_ALARMCLIENT,IMAGE_ALARMCLIENT,nImageIndex++);<br />
<br />
void CMainDialog::AddBitmapToList(CImageList& ImageList, UINT nId, UINT nImageId, UINT nImageIndex)<br />
{<br />
	CBitmap bm;<br />
	bm.LoadBitmap(nId);<br />
	ImageList.Add(&bm, RGB(255,0,255));  //set transparency colour<br />
	m_nImageIndex[nImageId] = nImageIndex;<br />
}


Debbie
GeneralRe: CImagelist and CListCtrl problem. Pin
justin22312-May-03 1:40
justin22312-May-03 1:40 
QuestionPhotoshop plugin??? Pin
Member 25795611-May-03 23:44
Member 25795611-May-03 23:44 
AnswerRe: Photoshop plugin??? Pin
ZoogieZork12-May-03 1:43
ZoogieZork12-May-03 1:43 
GeneralRe: Photoshop plugin??? Pin
Member 25795612-May-03 2:04
Member 25795612-May-03 2:04 
QuestionPretranslateMessage in ATL? Pin
peterchen11-May-03 22:48
peterchen11-May-03 22:48 
GeneralLooking for a CP article ... Pin
Rage11-May-03 22:41
professionalRage11-May-03 22:41 
GeneralDBase IV problems Pin
JensB11-May-03 21:50
JensB11-May-03 21:50 
Generalbase64 encodeing Pin
Mazdak11-May-03 21:25
Mazdak11-May-03 21:25 
GeneralRe: base64 encodeing Pin
Johnny ²11-May-03 22:15
Johnny ²11-May-03 22:15 
GeneralRe: base64 encodeing Pin
Mazdak11-May-03 22:25
Mazdak11-May-03 22:25 
GeneralTrapping the escape key Pin
Steve Messer11-May-03 21:24
Steve Messer11-May-03 21:24 
GeneralRe: Trapping the escape key Pin
JensB11-May-03 21:42
JensB11-May-03 21:42 
GeneralRe: Trapping the escape key Pin
Steve Messer12-May-03 18:48
Steve Messer12-May-03 18:48 
GeneralRe: Trapping the escape key Pin
Cedric Moonen11-May-03 21:43
Cedric Moonen11-May-03 21:43 
GeneralRe: Trapping the escape key Pin
Steve Messer12-May-03 5:56
Steve Messer12-May-03 5:56 
GeneralSome problems about superclassing Pin
boytan11-May-03 21:18
boytan11-May-03 21:18 
QuestionHow to locate an adress to write in a file? Pin
fineo11-May-03 18:40
fineo11-May-03 18:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.