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

C / C++ / MFC

 
Generalcall Pin
20-Jun-01 22:11
suss20-Jun-01 22:11 
GeneralRe: call Pin
21-Jun-01 9:42
suss21-Jun-01 9:42 
Generalaka network neighborhood Pin
20-Jun-01 21:58
suss20-Jun-01 21:58 
GeneralRe: aka network neighborhood Pin
Ben Burnett21-Jun-01 7:14
Ben Burnett21-Jun-01 7:14 
GeneralHw to use CArray template Pin
Özgür20-Jun-01 21:15
Özgür20-Jun-01 21:15 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:32
Bob Groves20-Jun-01 21:32 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:33
Bob Groves20-Jun-01 21:33 
GeneralRe: Hw to use CArray template Pin
Bob Groves20-Jun-01 21:34
Bob Groves20-Jun-01 21:34 
GeneralRe: Hw to use CArray template Pin
Christian Graus20-Jun-01 22:22
protectorChristian Graus20-Jun-01 22:22 
GeneralRe: Hw to use CArray template Pin
21-Jun-01 5:32
suss21-Jun-01 5:32 
GeneralMemory leak Pin
parag20-Jun-01 20:56
parag20-Jun-01 20:56 
GeneralRe: Memory leak Pin
Christian Graus20-Jun-01 22:25
protectorChristian Graus20-Jun-01 22:25 
GeneralLVN_ITEMCHANGED - CListCtrl Pin
sankar20-Jun-01 20:49
sankar20-Jun-01 20:49 
I have a Dialog Box "AAA" which consists of a command button ( let's say "DISPLAY" ).
On clicking this button another dialog box "BBB" is displayed which consists of a CListctrl among others.

Now, I wanted to catch a notification when ever the item is changed.

So, I implemented the
OnNotify (LVN_ITEMCHANGED,IDC_LISTCTRL, FnHandler) like this :

void CClass :: OnItemCHanged(NMHDR* pNMHDR, LRESULT* pResult )
{
NM_LISTVIEW* pNMListView = ( NM_LISTVIEW)pNMHDR;
int len = 0;
LPTSTR str;
myListCtrl.GetItemText(pNMListView ->iItem, 2, str, len)
*pResult = 0;
}

Now, Coming to my doubt, when i try to debug with the break point inside this function, I observe that it breaks when I click the button DISPLAY. why's this when I haven't changed the state of the item yet, also, the application crashes saying "User BreakPoint Exception" after teh GetItemText call. I do see an error saying that " HEAP ALLOCATION EXCEEDED".

what's wrong in the whole issue.

PL. explain.


regards
Sankar






GeneralRe: LVN_ITEMCHANGED - CListCtrl Pin
Michael Dunn20-Jun-01 20:53
sitebuilderMichael Dunn20-Jun-01 20:53 
GeneralRe: LVN_ITEMCHANGED - CListCtrl Pin
Michael Dunn20-Jun-01 21:43
sitebuilderMichael Dunn20-Jun-01 21:43 
Questionhow can i handle file commands to read and write xml files Pin
pathi20-Jun-01 20:27
pathi20-Jun-01 20:27 
AnswerRe: how can i handle file commands to read and write xml files Pin
Tomasz Sowinski21-Jun-01 0:24
Tomasz Sowinski21-Jun-01 0:24 
GeneralRe: how can i handle file commands to read and write xml files Pin
pathi21-Jun-01 23:56
pathi21-Jun-01 23:56 
GeneralRe: how can i handle file commands to read and write xml files Pin
Tomasz Sowinski22-Jun-01 1:50
Tomasz Sowinski22-Jun-01 1:50 
QuestionHow can I send a key combination (for example Ctrl+F2) to any window? Pin
20-Jun-01 20:03
suss20-Jun-01 20:03 
AnswerRe: How can I send a key combination (for example Ctrl+F2) to any window? Pin
Amit Jain21-Jun-01 4:35
Amit Jain21-Jun-01 4:35 
GeneralPrint preview Pin
20-Jun-01 18:38
suss20-Jun-01 18:38 
GeneralRe: Print preview Pin
Christian Graus20-Jun-01 18:54
protectorChristian Graus20-Jun-01 18:54 
GeneralRe: Print preview Pin
20-Jun-01 20:32
suss20-Jun-01 20:32 
GeneralRe: Print preview Pin
Christian Graus20-Jun-01 22:26
protectorChristian Graus20-Jun-01 22:26 

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.