Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: Segmentation Fault in GTK library files PinmemberSrivathsanRaghavan2-Dec-12 23:11 
GeneralRe: Segmentation Fault in GTK library files PinmvpRichard MacCutchan2-Dec-12 23:28 
GeneralRe: Segmentation Fault in GTK library files PinmemberSrivathsanRaghavan3-Dec-12 1:25 
GeneralRe: Segmentation Fault in GTK library files PinmvpRichard MacCutchan3-Dec-12 1:55 
Questioncan i use mem_fun like this? PinmemberFalconapollo1-Dec-12 18:37 
AnswerRe: can i use mem_fun like this? PinmvpRichard MacCutchan1-Dec-12 21:56 
AnswerRe: can i use mem_fun like this? PinmemberStephen Hewitt2-Dec-12 5:45 
AnswerRe: can i use mem_fun like this? Pingroupgoumuli2-Dec-12 7:21 
AnswerRe: can i use mem_fun like this? PinmemberStefan_Lang3-Dec-12 3:14 
AnswerRe: can i use mem_fun like this? PinmemberStefan_Lang3-Dec-12 4:45 
GeneralRe: can i use mem_fun like this? PinmemberFalconapollo4-Dec-12 15:43 
Questionclient server for running the program Pinmemberdanielsutopo1-Dec-12 16:09 
AnswerRe: client server for running the program PinmemberAlbert Holguin1-Dec-12 18:22 
QuestionLimiting selected checkbox items in a CListCtrl Pinmembersoftwaremonkey1-Dec-12 2:40 
I have a CListCtrl with the LVS_EX_CHECKBOXES style and I want to limit the number of items that the user can select. I have written the following code but (of course) it gets itself in a loop because in changing the state of an item, it causes OnItemchangingLoadingValues() to be called again.
 
void CSpecimenLoadingDialog::OnItemchangingLoadingValues(NMHDR* pNMHDR, LRESULT* pResult) 
{
	NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
	int nCheckedItems = 0;
	for(int i = 0; i < m_loadingVals.GetItemCount(); i++)
	{
		BOOL bState = ListView_GetCheckState(m_loadingVals.m_hWnd, i);
		if(bState)
		{
			nCheckedItems++;
		}
	}
 
	if(nCheckedItems == 2)
	{
		ListView_SetItemState(m_loadingVals.m_hWnd, pNMListView->iItem, FALSE, LVIS_STATEIMAGEMASK);
	}
 
	*pResult = 0;
}
 
What is the correct way to go about doing this? Unsure | :~
SuggestionRe: Limiting selected checkbox items in a CListCtrl PinmemberDavidCrow1-Dec-12 4:51 
AnswerRe: Limiting selected checkbox items in a CListCtrl PinmemberJochen Arndt2-Dec-12 0:56 
GeneralRe: Limiting selected checkbox items in a CListCtrl Pinmembersoftwaremonkey2-Dec-12 23:45 
QuestionUsing VISUAL C++ 6.0 with OLE PinmemberForNow30-Nov-12 10:06 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pinmemberjschell30-Nov-12 11:46 
SuggestionRe: Using VISUAL C++ 6.0 with OLE PinmemberDavidCrow30-Nov-12 15:24 
GeneralRe: Using VISUAL C++ 6.0 with OLE PinmemberForNow4-Dec-12 14:48 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberStephen Hewitt2-Dec-12 5:54 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberCristian Amarie3-Dec-12 9:52 
QuestionDll injection and hooking Pinmemberminiman0630-Nov-12 8:47 
AnswerRe: Dll injection and hooking Pinmemberminiman061-Dec-12 20:01 
Questionsimple program in linux doesnt work Pinmembera1_shay29-Nov-12 23:59 
AnswerRe: simple program in linux doesnt work PinmemberGraham Breach30-Nov-12 1:24 
GeneralRe: simple program in linux doesnt work Pinmembera1_shay30-Nov-12 2:43 
AnswerRe: simple program in linux doesnt work Pinmemberjschell30-Nov-12 11:49 
QuestionRead binary File Pinmemberyogeshs29-Nov-12 0:05 
AnswerRe: Read binary File PinmvpRichard MacCutchan29-Nov-12 0:14 
AnswerRe: Read binary File PinmemberFreak3029-Nov-12 0:18 
GeneralRe: Read binary File Pinmemberyogeshs29-Nov-12 0:41 
QuestionRe: Read binary File PinmemberDavidCrow29-Nov-12 3:37 
Questionextracting resources from an exe for translation Pinmemberchronodekar28-Nov-12 22:28 
AnswerRe: extracting resources from an exe for translation PinmemberMattias G3-Dec-12 23:24 
Questioncompile code twice,why the two result is differrent Pinmemberyingkou28-Nov-12 22:10 
AnswerRe: compile code twice,why the two result is differrent PinmemberStefan_Lang28-Nov-12 23:31 
AnswerRe: compile code twice,why the two result is differrent PinmemberStephen Hewitt29-Nov-12 1:42 
AnswerRe: compile code twice,why the two result is differrent Pinmembersajeesh.c30-Nov-12 19:28 
AnswerRe: compile code twice,why the two result is differrent PinmemberCristian Amarie3-Dec-12 9:55 
QuestionCListCtrl Pinmembersarfaraznawaz28-Nov-12 22:07 
AnswerRe: CListCtrl PinmemberJochen Arndt28-Nov-12 22:30 
QuestionLong pointer to character C++ Pinmemberpix_programmer28-Nov-12 5:41 
GeneralRe: Long pointer to character C++ PinmemberDavidCrow28-Nov-12 6:19 
AnswerRe: Long pointer to character C++ PinmvpRichard MacCutchan28-Nov-12 6:20 
AnswerRe: Long pointer to character C++ PinmemberStefan_Lang28-Nov-12 7:07 
GeneralRe: Long pointer to character C++ PinmemberDavidCrow28-Nov-12 8:56 
GeneralRe: Long pointer to character C++ PinmemberStefan_Lang28-Nov-12 23:03 
AnswerRe: Long pointer to character C++ PinmvpCPallini28-Nov-12 8:48 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid