Click here to Skip to main content
15,916,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Statically link .lib file Pin
Wim Jans8-Oct-02 2:26
Wim Jans8-Oct-02 2:26 
GeneralUsing checkboxes only in certain items of a listctrl (using the standard listctrl) Pin
Joan M7-Oct-02 9:28
professionalJoan M7-Oct-02 9:28 
GeneralRe: Using checkboxes only in certain items of a listctrl (using the standard listctrl) Pin
Max Santos7-Oct-02 12:16
Max Santos7-Oct-02 12:16 
GeneralObject Design Question Pin
Richard Longhorn McHoney7-Oct-02 9:17
sussRichard Longhorn McHoney7-Oct-02 9:17 
GeneralRe: Object Design Question Pin
Joaquín M López Muñoz7-Oct-02 9:31
Joaquín M López Muñoz7-Oct-02 9:31 
GeneralRe: Object Design Question Pin
Richard Longhorn Mchony7-Oct-02 13:37
sussRichard Longhorn Mchony7-Oct-02 13:37 
GeneralRe: Object Design Question Pin
Paul M Watt7-Oct-02 20:17
mentorPaul M Watt7-Oct-02 20:17 
GeneralClistctrl and insertItem Pin
ns7-Oct-02 9:08
ns7-Oct-02 9:08 
Is this weird?

I have an array with some entries I want to suppress from showing in the CListCtrl. WIthout thinking about index mismatch and conflict(and all I reallly need here is to populate the ctrl), I did:

		for (int i3 = 0; i3 < pDoc->m_nNumItems; i3++)
		{
			fClearAllForList1 = TRUE;
			if(pDoc->m_docFldHolder[i3] == "CDE")continue;
			if(pDoc->m_docFldHolder[i3] == "XYZ")continue;
//			if(pDoc->m_docFldHolder[i3] == "_")continue;
			int nItem = m_list1.InsertItem(i3,pDoc->m_docFldHolder[i3]);

		}


The entries all show up with no blank rows where the item was suppressed. SO if I didnt put in element # 3 of the arrray, the fourth element shows up where the third one shhould have been though if you look at the indices above, technically it should have skipped a row...
Is this safe or should I put use two indices, one for the rows and one for the array? AgainI really need to populate it only. I'm not doing any processing with the item number in the ctrl.

Confused | :confused:

Appreciate your help,
ns
GeneralRe: Clistctrl and insertItem Pin
Joaquín M López Muñoz7-Oct-02 10:04
Joaquín M López Muñoz7-Oct-02 10:04 
GeneralRe: Clistctrl and insertItem Pin
ns8-Oct-02 1:15
ns8-Oct-02 1:15 
GeneralQuick SDI Question Pin
Anonymous7-Oct-02 9:02
Anonymous7-Oct-02 9:02 
GeneralRe: Quick SDI Question Pin
Jörgen Sigvardsson7-Oct-02 10:02
Jörgen Sigvardsson7-Oct-02 10:02 
GeneralRe: Quick SDI Question Pin
Anonymous7-Oct-02 10:12
Anonymous7-Oct-02 10:12 
Generalc++ to c# question Pin
Duckworth7-Oct-02 8:57
Duckworth7-Oct-02 8:57 
GeneralRe: c++ to c# question Pin
Jörgen Sigvardsson7-Oct-02 10:09
Jörgen Sigvardsson7-Oct-02 10:09 
GeneralSerial Ports and WaitCommEvent( ) Pin
SportyDan7-Oct-02 8:35
SportyDan7-Oct-02 8:35 
GeneralRe: Serial Ports and WaitCommEvent( ) Pin
Joaquín M López Muñoz7-Oct-02 9:56
Joaquín M López Muñoz7-Oct-02 9:56 
Questionwhat's wrong here? Pin
Kash7-Oct-02 8:29
Kash7-Oct-02 8:29 
GeneralCreating new View Pin
Goa7-Oct-02 8:27
Goa7-Oct-02 8:27 
GeneralRe: Creating new View Pin
valikac7-Oct-02 10:38
valikac7-Oct-02 10:38 
QuestionHow do I ....??? Pin
JohnnyG7-Oct-02 7:58
JohnnyG7-Oct-02 7:58 
AnswerRe: How do I ....??? Pin
Joaquín M López Muñoz7-Oct-02 10:08
Joaquín M López Muñoz7-Oct-02 10:08 
GeneralRe: How do I ....??? Pin
JohnnyG7-Oct-02 10:26
JohnnyG7-Oct-02 10:26 
GeneralRe: How do I ....??? Pin
JohnnyG8-Oct-02 17:21
JohnnyG8-Oct-02 17:21 
GeneralADO and ADOX Pin
arthivjii7-Oct-02 7:20
arthivjii7-Oct-02 7:20 

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.