Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Q: Does anybody know about VC++ mailing discussion lists? Pin
John Aspras18-Dec-00 3:35
John Aspras18-Dec-00 3:35 
GeneralRe: Q: Does anybody know about VC++ mailing discussion lists? Pin
NormDroid18-Dec-00 4:16
professionalNormDroid18-Dec-00 4:16 
GeneralStatically compiling in Visual C++ Pin
17-Dec-00 13:10
suss17-Dec-00 13:10 
GeneralRe: Statically compiling in Visual C++ Pin
Jonathan Gilligan17-Dec-00 14:40
Jonathan Gilligan17-Dec-00 14:40 
GeneralRe: Statically compiling in Visual C++ Pin
Erik Funkenbusch17-Dec-00 16:25
Erik Funkenbusch17-Dec-00 16:25 
GeneralRe: Statically compiling in Visual C++ Pin
l a u r e n21-Dec-00 19:56
l a u r e n21-Dec-00 19:56 
GeneralTrying to resize buttons in a toolbar..... Pin
Christian Graus17-Dec-00 11:03
protectorChristian Graus17-Dec-00 11:03 
GeneralCListCtrl Questions Pin
17-Dec-00 10:52
suss17-Dec-00 10:52 
I have a list control with one column and that uses an imagelist in a wizard dialog. The list control is used to indicate your relative poisition in the wizard process. An image from the image list is used to indicate one of three states for a given list control item.

When the user clicks the NEXT or BACK buttons, the image changes for the appropriate list control item. The following is the body of the function that is called at this point:

void MyFunction(int nIndex, int nImage)
{
	LV_ITEM lvi;
	lvi.iItem    = nIndex;
	lvi.iSubItem = 0;   // <<------
	lvi.mask     = LVIF_IMAGE;
	lvi.iImage   = nImage;
	m_ctrlListOfSteps.SetItem(&lvi);
	m_ctrlListOfSteps.Update(nIndex);
}


When compiled in debug mode, the function works as expected *without* the line indicated by the "// <<-----" comment. In release mode, the program does not update the image displayed in the list control correctly UNLESS the line indicated is included in the code.

I would like to know if anyone knows *why* this is the case?
GeneralRe: CListCtrl Questions Pin
Michael Dunn17-Dec-00 16:38
sitebuilderMichael Dunn17-Dec-00 16:38 
GeneralRe: CListCtrl Questions // initializing varaibles Pin
Julien21-Dec-00 11:27
Julien21-Dec-00 11:27 
GeneralWin Media Encoder/Format SDK Pin
Roger17-Dec-00 5:43
Roger17-Dec-00 5:43 
GeneralSystem Wide Dll Pin
17-Dec-00 4:20
suss17-Dec-00 4:20 
GeneralRe: System Wide Dll Pin
Julien21-Dec-00 11:44
Julien21-Dec-00 11:44 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:32
suss16-Dec-00 22:32 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:31
suss16-Dec-00 22:31 
GeneralFAXing from MFC Pin
Brad Bruce16-Dec-00 10:37
Brad Bruce16-Dec-00 10:37 
Questionmodify MessageBox? Pin
15-Dec-00 23:57
suss15-Dec-00 23:57 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 0:39
Masoud Samimi16-Dec-00 0:39 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 13:16
Masoud Samimi16-Dec-00 13:16 
Generalcin with passwords Pin
Alvaro Mendez15-Dec-00 12:03
Alvaro Mendez15-Dec-00 12:03 
QuestionHow to avoid problems caused by moving a window? Pin
Joan M15-Dec-00 10:09
professionalJoan M15-Dec-00 10:09 
AnswerRe: How to avoid problems caused by moving a window? Pin
Michael Dunn15-Dec-00 18:55
sitebuilderMichael Dunn15-Dec-00 18:55 
Questionaccessing variables from different threads? Pin
Joan M15-Dec-00 10:03
professionalJoan M15-Dec-00 10:03 
AnswerRe: accessing variables from different threads? Pin
Michael Dunn15-Dec-00 19:00
sitebuilderMichael Dunn15-Dec-00 19:00 
AnswerRe: accessing variables from different threads? Pin
Julien21-Dec-00 12:04
Julien21-Dec-00 12:04 

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.