Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I feel it like a repost. [modified] Pin
Perspx24-Aug-08 23:03
Perspx24-Aug-08 23:03 
QuestionRe: I feel it like a repost. Pin
T.RATHA KRISHNAN24-Aug-08 23:08
T.RATHA KRISHNAN24-Aug-08 23:08 
AnswerRe: I feel it like a repost. Pin
Perspx24-Aug-08 23:18
Perspx24-Aug-08 23:18 
QuestionRe: I feel it like a repost. Pin
T.RATHA KRISHNAN24-Aug-08 23:29
T.RATHA KRISHNAN24-Aug-08 23:29 
AnswerRe: I feel it like a repost. Pin
Perspx24-Aug-08 23:39
Perspx24-Aug-08 23:39 
AnswerRe: I feel it like a repost. Pin
ThatsAlok25-Aug-08 1:24
ThatsAlok25-Aug-08 1:24 
AnswerRe: Separate Window Pin
David Crow25-Aug-08 4:57
David Crow25-Aug-08 4:57 
QuestionTree view Question Pin
Dennis L24-Aug-08 22:52
Dennis L24-Aug-08 22:52 
Hi All!

I want on a tree control (under Win32 SDK) to retrieve item text by using NM_CLICK notification.
The problem i have is when I use NM_CLICK I retrieve NULL at HTREEITEM handle (I checked with NM_DBLCLK and i retrieved a handle).
would it be good idea to use TVHITTESTINFO with TreeView_HitTest?


The code is:

...
case NM_CLICK
{
char str[32];
int ret = 0;
TV_ITEM item;
HTREEITEM hItem = NULL;

// Get next selected item
// When i use NM_DBLCLK hItem is not NULL<-------
hItem = (HTREEITEM)TreeView_GetNextItem(hTree, hItem, TVGN_CARET);
if (hItem == NULL)
ret = 0;

item.mask = TVIF_TEXT;
item.cchTextMax= 32;
item.pszText= str;
item.hItem = hItem;

if (!TreeView_GetItem(hTree, &item))
ret = -1;
}

Thanks
AnswerRe: Tree view Question Pin
Mark Salsbery25-Aug-08 5:59
Mark Salsbery25-Aug-08 5:59 
Questionexpanding tree control Pin
Madan Chauhan24-Aug-08 21:43
Madan Chauhan24-Aug-08 21:43 
AnswerRe: expanding tree control Pin
ThatsAlok24-Aug-08 21:49
ThatsAlok24-Aug-08 21:49 
QuestionHow to create a new folder compresed?? Pin
bosfan24-Aug-08 21:41
bosfan24-Aug-08 21:41 
AnswerRe: How to create a new folder compresed?? Pin
Perspx24-Aug-08 23:05
Perspx24-Aug-08 23:05 
GeneralRe: How to create a new folder compresed?? Pin
ThatsAlok25-Aug-08 1:18
ThatsAlok25-Aug-08 1:18 
GeneralRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 1:32
Perspx25-Aug-08 1:32 
GeneralRe: How to create a new folder compresed?? Pin
ThatsAlok25-Aug-08 1:50
ThatsAlok25-Aug-08 1:50 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 2:46
bosfan25-Aug-08 2:46 
AnswerRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 3:06
Perspx25-Aug-08 3:06 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 4:55
bosfan25-Aug-08 4:55 
AnswerRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:23
Perspx25-Aug-08 5:23 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 5:44
bosfan25-Aug-08 5:44 
QuestionRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:52
Perspx25-Aug-08 5:52 
AnswerRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 21:01
bosfan25-Aug-08 21:01 
GeneralRe: How to create a new folder compresed?? Pin
bosfan26-Aug-08 1:17
bosfan26-Aug-08 1:17 
QuestionSHChangeNotifyRegister Pin
NewVC++24-Aug-08 21:25
NewVC++24-Aug-08 21:25 

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.