Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Subject: GUI design in VS 2005 [modified] Pin
James R. Twine14-Jun-06 3:55
James R. Twine14-Jun-06 3:55 
QuestionSTL set_intersection Pin
Abhi Lahare14-Jun-06 2:53
Abhi Lahare14-Jun-06 2:53 
AnswerRe: STL set_intersection Pin
Laxman Auti14-Jun-06 3:09
Laxman Auti14-Jun-06 3:09 
AnswerRe: STL set_intersection Pin
_AnsHUMAN_ 14-Jun-06 3:13
_AnsHUMAN_ 14-Jun-06 3:13 
AnswerRe: STL set_intersection Pin
Laxman Auti14-Jun-06 3:26
Laxman Auti14-Jun-06 3:26 
QuestionImageList in ListCtrl behaves differently in debug or release Pin
e-DJ14-Jun-06 2:47
e-DJ14-Jun-06 2:47 
GeneralRe: ImageList in ListCtrl behaves differently in debug or release Pin
Laxman Auti14-Jun-06 2:51
Laxman Auti14-Jun-06 2:51 
GeneralRe: ImageList in ListCtrl behaves differently in debug or release Pin
e-DJ24-Jul-06 6:13
e-DJ24-Jul-06 6:13 
Ok, here is what my code looks like:

CImageList StatusImage is a member-variable in my class.

OnInitDialog()
{
	StatusImage.Create(4,12,ILC_COLOR4,5,1);

	AddBitmapToImageList(StatusImage,IDB_STATUS_PLAN);
	AddBitmapToImageList(StatusImage,IDB_STATUS_GO);
	AddBitmapToImageList(StatusImage,IDB_STATUS_CRITICAL);
	AddBitmapToImageList(StatusImage,IDB_STATUS_FINISH);
	AddBitmapToImageList(StatusImage,IDB_STATUS_STOP);
}
BOOL AddBitmapToImageList(CImageList &imageList, UINT nResourceID)
{
	BOOL bReturn;
	CBitmap bmp;
	
	bReturn=bmp.LoadBitmap(nResourceID);
	if(bReturn)
	{
		bReturn=imageList.Add(&bmp,RGB(255,255,255));
		bmp.DeleteObject();
	}
	return bReturn;
}


When I access the ImageList in debug-mode, the correct image is selected. When I access the list in release-mode, only the first bitmap is displayed.
I even debugged the release-version, but I found no errors. Everything seems to work fine. But the wrong image is displayed.

Juergen



AnswerRe: ImageList in ListCtrl behaves differently in debug or release Pin
Naveen14-Jun-06 2:57
Naveen14-Jun-06 2:57 
QuestionHow to hide the tabs in PropertyPage Pin
si_6914-Jun-06 2:43
si_6914-Jun-06 2:43 
AnswerRe: How to hide the tabs in PropertyPage Pin
Laxman Auti14-Jun-06 2:48
Laxman Auti14-Jun-06 2:48 
GeneralRe: How to hide the tabs in PropertyPage Pin
Naveen14-Jun-06 2:50
Naveen14-Jun-06 2:50 
GeneralRe: How to hide the tabs in PropertyPage Pin
Laxman Auti14-Jun-06 2:57
Laxman Auti14-Jun-06 2:57 
AnswerRe: How to hide the tabs in PropertyPage Pin
Naveen14-Jun-06 2:48
Naveen14-Jun-06 2:48 
QuestionRe: How to hide the tabs in PropertyPage Pin
David Crow14-Jun-06 4:07
David Crow14-Jun-06 4:07 
QuestionCompareFileTime problems Pin
LCI14-Jun-06 2:26
LCI14-Jun-06 2:26 
AnswerRe: CompareFileTime problems Pin
James R. Twine14-Jun-06 2:29
James R. Twine14-Jun-06 2:29 
GeneralRe: CompareFileTime problems Pin
LCI14-Jun-06 2:37
LCI14-Jun-06 2:37 
GeneralRe: CompareFileTime problems Pin
Cedric Moonen14-Jun-06 2:48
Cedric Moonen14-Jun-06 2:48 
GeneralRe: CompareFileTime problems Pin
James R. Twine14-Jun-06 3:00
James R. Twine14-Jun-06 3:00 
AnswerRe: CompareFileTime problems Pin
Hamid_RT14-Jun-06 2:59
Hamid_RT14-Jun-06 2:59 
Questiondisplayiing a Dialog over a Dialog Pin
anilksingh14-Jun-06 2:06
anilksingh14-Jun-06 2:06 
AnswerRe: displayiing a Dialog over a Dialog Pin
Cedric Moonen14-Jun-06 2:14
Cedric Moonen14-Jun-06 2:14 
AnswerRe: displayiing a Dialog over a Dialog Pin
Laxman Auti14-Jun-06 2:15
Laxman Auti14-Jun-06 2:15 
AnswerRe: displayiing a Dialog over a Dialog [modified] Pin
_AnsHUMAN_ 14-Jun-06 2:18
_AnsHUMAN_ 14-Jun-06 2:18 

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.