Click here to Skip to main content
11,430,908 members (76,993 online)

C / C++ / MFC

 
GeneralRe: Segmentation Fault in GTK library files Pin
SrivathsanRaghavan3-Dec-12 1:25
memberSrivathsanRaghavan3-Dec-12 1:25 
GeneralRe: Segmentation Fault in GTK library files Pin
Richard MacCutchan3-Dec-12 1:55
mvpRichard MacCutchan3-Dec-12 1:55 
Questioncan i use mem_fun like this? Pin
Falconapollo1-Dec-12 18:37
memberFalconapollo1-Dec-12 18:37 
AnswerRe: can i use mem_fun like this? Pin
Richard MacCutchan1-Dec-12 21:56
mvpRichard MacCutchan1-Dec-12 21:56 
AnswerRe: can i use mem_fun like this? Pin
Stephen Hewitt2-Dec-12 5:45
memberStephen Hewitt2-Dec-12 5:45 
AnswerRe: can i use mem_fun like this? Pin
goumuli2-Dec-12 7:21
groupgoumuli2-Dec-12 7:21 
AnswerRe: can i use mem_fun like this? Pin
Stefan_Lang3-Dec-12 3:14
memberStefan_Lang3-Dec-12 3:14 
AnswerRe: can i use mem_fun like this? Pin
Stefan_Lang3-Dec-12 4:45
memberStefan_Lang3-Dec-12 4:45 
GeneralRe: can i use mem_fun like this? Pin
Falconapollo4-Dec-12 15:43
memberFalconapollo4-Dec-12 15:43 
Questionclient server for running the program Pin
danielsutopo1-Dec-12 16:09
memberdanielsutopo1-Dec-12 16:09 
AnswerRe: client server for running the program Pin
Albert Holguin1-Dec-12 18:22
memberAlbert Holguin1-Dec-12 18:22 
QuestionLimiting selected checkbox items in a CListCtrl Pin
softwaremonkey1-Dec-12 2:40
membersoftwaremonkey1-Dec-12 2:40 
SuggestionRe: Limiting selected checkbox items in a CListCtrl Pin
DavidCrow1-Dec-12 4:51
memberDavidCrow1-Dec-12 4:51 
AnswerRe: Limiting selected checkbox items in a CListCtrl Pin
Jochen Arndt2-Dec-12 0:56
memberJochen Arndt2-Dec-12 0:56 
You may add a member variable to your class (or a static variable to the handler function) indicating that the handler is called recursive:
 // Header file
private:
    m_bIgnoreChgHandling;
 
// Source file
CSpecimenLoadingDialog::CSpecimenLoadingDialog()
{
    m_bIgnoreChgHandling = false;
}
 
void CSpecimenLoadingDialog::OnItemchangingLoadingValues(NMHDR* pNMHDR, LRESULT* pResult) 
{
    // Alternative: Use static variable here
    // static bool m_bIgnoreChgHandling = false;
    if (!m_bIgnoreChgHandling)
    {
        NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
        int nCheckedItems = 0;
        // some handling code
        if(nCheckedItems == 2)
        {
            m_bIgnoreChgHandling = true;
            ListView_SetItemState(m_loadingVals.m_hWnd, pNMListView->iItem, FALSE, LVIS_STATEIMAGEMASK);
            m_bIgnoreChgHandling = false;
        }
    }
    *pResult = 0;
}

GeneralRe: Limiting selected checkbox items in a CListCtrl Pin
softwaremonkey2-Dec-12 23:45
membersoftwaremonkey2-Dec-12 23:45 
QuestionUsing VISUAL C++ 6.0 with OLE Pin
ForNow30-Nov-12 10:06
memberForNow30-Nov-12 10:06 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pin
jschell30-Nov-12 11:46
memberjschell30-Nov-12 11:46 
SuggestionRe: Using VISUAL C++ 6.0 with OLE Pin
DavidCrow30-Nov-12 15:24
memberDavidCrow30-Nov-12 15:24 
GeneralRe: Using VISUAL C++ 6.0 with OLE Pin
ForNow4-Dec-12 14:48
memberForNow4-Dec-12 14:48 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pin
Stephen Hewitt2-Dec-12 5:54
memberStephen Hewitt2-Dec-12 5:54 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pin
Cristian Amarie3-Dec-12 9:52
memberCristian Amarie3-Dec-12 9:52 
QuestionDll injection and hooking Pin
miniman0630-Nov-12 8:47
memberminiman0630-Nov-12 8:47 
AnswerRe: Dll injection and hooking Pin
miniman061-Dec-12 20:01
memberminiman061-Dec-12 20:01 
Questionsimple program in linux doesnt work Pin
a1_shay29-Nov-12 23:59
membera1_shay29-Nov-12 23:59 
AnswerRe: simple program in linux doesnt work Pin
Graham Breach30-Nov-12 1:24
memberGraham Breach30-Nov-12 1:24 
GeneralRe: simple program in linux doesnt work Pin
a1_shay30-Nov-12 2:43
membera1_shay30-Nov-12 2:43 
AnswerRe: simple program in linux doesnt work Pin
jschell30-Nov-12 11:49
memberjschell30-Nov-12 11:49 
QuestionRead binary File Pin
yogeshs29-Nov-12 0:05
memberyogeshs29-Nov-12 0:05 
AnswerRe: Read binary File Pin
Richard MacCutchan29-Nov-12 0:14
mvpRichard MacCutchan29-Nov-12 0:14 
AnswerRe: Read binary File Pin
Freak3029-Nov-12 0:18
memberFreak3029-Nov-12 0:18 
GeneralRe: Read binary File Pin
yogeshs29-Nov-12 0:41
memberyogeshs29-Nov-12 0:41 
QuestionRe: Read binary File Pin
DavidCrow29-Nov-12 3:37
memberDavidCrow29-Nov-12 3:37 
Questionextracting resources from an exe for translation Pin
chronodekar28-Nov-12 22:28
memberchronodekar28-Nov-12 22:28 
AnswerRe: extracting resources from an exe for translation Pin
Mattias G3-Dec-12 23:24
memberMattias G3-Dec-12 23:24 
Questioncompile code twice,why the two result is differrent Pin
yingkou28-Nov-12 22:10
memberyingkou28-Nov-12 22:10 
AnswerRe: compile code twice,why the two result is differrent Pin
Stefan_Lang28-Nov-12 23:31
memberStefan_Lang28-Nov-12 23:31 
AnswerRe: compile code twice,why the two result is differrent Pin
Stephen Hewitt29-Nov-12 1:42
memberStephen Hewitt29-Nov-12 1:42 
AnswerRe: compile code twice,why the two result is differrent Pin
sajeesh.c30-Nov-12 19:28
membersajeesh.c30-Nov-12 19:28 
AnswerRe: compile code twice,why the two result is differrent Pin
Cristian Amarie3-Dec-12 9:55
memberCristian Amarie3-Dec-12 9:55 
QuestionCListCtrl Pin
sarfaraznawaz28-Nov-12 22:07
membersarfaraznawaz28-Nov-12 22:07 
AnswerRe: CListCtrl Pin
Jochen Arndt28-Nov-12 22:30
memberJochen Arndt28-Nov-12 22:30 
QuestionLong pointer to character C++ Pin
pix_programmer28-Nov-12 5:41
memberpix_programmer28-Nov-12 5:41 
GeneralRe: Long pointer to character C++ Pin
DavidCrow28-Nov-12 6:19
memberDavidCrow28-Nov-12 6:19 
AnswerRe: Long pointer to character C++ Pin
Richard MacCutchan28-Nov-12 6:20
mvpRichard MacCutchan28-Nov-12 6:20 
AnswerRe: Long pointer to character C++ Pin
Stefan_Lang28-Nov-12 7:07
memberStefan_Lang28-Nov-12 7:07 
GeneralRe: Long pointer to character C++ Pin
DavidCrow28-Nov-12 8:56
memberDavidCrow28-Nov-12 8:56 
GeneralRe: Long pointer to character C++ Pin
Stefan_Lang28-Nov-12 23:03
memberStefan_Lang28-Nov-12 23:03 
AnswerRe: Long pointer to character C++ Pin
CPallini28-Nov-12 8:48
mvpCPallini28-Nov-12 8:48 
AnswerRe: Long pointer to character C++ Pin
sajeesh.c30-Nov-12 19:35
membersajeesh.c30-Nov-12 19:35 
AnswerRe: Long pointer to character C++ [modified] Pin
April Fans13-Dec-12 19:06
memberApril Fans13-Dec-12 19:06 

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
Web03 | 2.8.150428.2 | Last Updated 4 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid