Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What would be the best approach to read the following structured text with C++ Pin
toxcct13-Apr-05 20:51
toxcct13-Apr-05 20:51 
QuestionHow can I use the DDK with VC6.0? Pin
zhenyuanwu13-Apr-05 5:16
zhenyuanwu13-Apr-05 5:16 
AnswerRe: How can I use the DDK with VC6.0? Pin
Mike Dimmick13-Apr-05 8:16
Mike Dimmick13-Apr-05 8:16 
GeneralRe: How can I use the DDK with VC6.0? Pin
Alexander M.,14-Apr-05 9:17
Alexander M.,14-Apr-05 9:17 
GeneralRe: How can I use the DDK with VC6.0? Pin
Mike Dimmick14-Apr-05 9:31
Mike Dimmick14-Apr-05 9:31 
GeneralSetting an event on minimize Pin
Tom Wright13-Apr-05 4:22
Tom Wright13-Apr-05 4:22 
GeneralRe: Setting an event on minimize Pin
Tom Wright13-Apr-05 4:49
Tom Wright13-Apr-05 4:49 
GeneralCTreeCtrl NM_CLICK notification. Pin
Maximilien13-Apr-05 4:08
Maximilien13-Apr-05 4:08 
(either on VC6 and VC.net 2003 )

I have a ctreectrl on which I handle the NM_CLICK notification :

ON_NOTIFY( NM_CLICK,IDC_TREE, OnTreeClick )

and
void CMyClass::OnTreeClick( NMHDR* pNMHDR, LRESULT* pResult )
{
  NMTREEVIEW* pNMTreeView = (NMTREEVIEW*)pNMHDR;
  HTREEITEM  hSelItem = pNMTreeView->itemNew.hItem;
  /// ...
}


the item returned by pNMTreeView->itemNew.hItem is invalid when I click next to a tree item; it's not NULL and it's not a valid HTREEITEM.

Is it valid to use that or do I need to do something else ( like CTreeCtrl::GetSelectedItem ) ?

Thanks.

Max.



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: CTreeCtrl NM_CLICK notification. Pin
Michael Dunn13-Apr-05 7:31
sitebuilderMichael Dunn13-Apr-05 7:31 
GeneralPure Virtual Function Call Pin
abc87613-Apr-05 3:57
abc87613-Apr-05 3:57 
GeneralRe: Pure Virtual Function Call Pin
digwizfox13-Apr-05 6:49
digwizfox13-Apr-05 6:49 
GeneralRe: Pure Virtual Function Call Pin
Anonymous13-Apr-05 6:59
Anonymous13-Apr-05 6:59 
GeneralRe: Pure Virtual Function Call Pin
digwizfox13-Apr-05 10:45
digwizfox13-Apr-05 10:45 
GeneralRe: Pure Virtual Function Call Pin
Mike Dimmick13-Apr-05 8:37
Mike Dimmick13-Apr-05 8:37 
GeneralRe: Pure Virtual Function Call Pin
Anonymous13-Apr-05 8:49
Anonymous13-Apr-05 8:49 
GeneralRe: Pure Virtual Function Call Pin
mark novak14-Apr-05 0:38
mark novak14-Apr-05 0:38 
GeneralService Control Manager types with MFC Pin
sweep12313-Apr-05 3:41
sweep12313-Apr-05 3:41 
GeneralRe: Service Control Manager types with MFC Pin
Alexander M.,13-Apr-05 3:55
Alexander M.,13-Apr-05 3:55 
GeneralRe: Service Control Manager types with MFC Pin
sweep12313-Apr-05 4:10
sweep12313-Apr-05 4:10 
GeneralRe: Service Control Manager types with MFC Pin
Ravi Bhavnani13-Apr-05 5:30
professionalRavi Bhavnani13-Apr-05 5:30 
GeneralRe: Service Control Manager types with MFC Pin
sweep12313-Apr-05 5:38
sweep12313-Apr-05 5:38 
Generalproblem with functions and variables... Pin
Green Fuze13-Apr-05 2:35
Green Fuze13-Apr-05 2:35 
GeneralRe: problem with functions and variables... Pin
David Crow13-Apr-05 2:41
David Crow13-Apr-05 2:41 
GeneralRe: problem with functions and variables... Pin
Green Fuze13-Apr-05 13:28
Green Fuze13-Apr-05 13:28 
GeneralRe: problem with functions and variables... Pin
Ryan Binns13-Apr-05 18:28
Ryan Binns13-Apr-05 18:28 

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.