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

C / C++ / MFC

 
AnswerRe: Failed to invoke web services in VC++, please help Pin
kapil_moondra5-Jan-09 1:25
kapil_moondra5-Jan-09 1:25 
QuestionI hate imagelists!! ( drawing with ILD_TRANSPARENT ) [modified] Pin
Maximilien19-Jul-06 11:23
Maximilien19-Jul-06 11:23 
AnswerRe: I hate imagelists!! ( drawing with ILD_TRANSPARENT ) Pin
led mike19-Jul-06 11:40
led mike19-Jul-06 11:40 
GeneralRe: I hate imagelists!! ( drawing with ILD_TRANSPARENT ) Pin
Maximilien19-Jul-06 14:41
Maximilien19-Jul-06 14:41 
AnswerRe: I hate imagelists!! ( drawing with ILD_TRANSPARENT ) Pin
Michael Dunn19-Jul-06 16:15
sitebuilderMichael Dunn19-Jul-06 16:15 
QuestionIs the microphone in use? Pin
Larsson19-Jul-06 10:35
Larsson19-Jul-06 10:35 
QuestionRe: Is the microphone in use? [modified] Pin
Ali Rafiee19-Jul-06 10:52
Ali Rafiee19-Jul-06 10:52 
QuestionHow can I select a node in a treeview Pin
Alex Cutovoi19-Jul-06 9:08
Alex Cutovoi19-Jul-06 9:08 
Hi fellows.

I have a treeview(populated) and I would like to select a single node I have this code:
<br />
case WM_NOTIFY:<br />
      {<br />
         TV_ITEM tempTvItem;<br />
         char cTemp[256]="";<br />
         unsigned int uiVal = 0;<br />
         LPNMHDR notifyMessageStruct = (LPNMHDR)lParam;<br />
         if(notifyMessageStruct->hwndFrom == treeViewHwnd)<br />
         {<br />
            if(notifyMessageStruct->code == NM_CLICK)<br />
            {<br />
                  nodeSelected = (HTREEITEM)SendDlgItemMessage(treeViewHwnd, IDC_TREE1, TVM_SELECTITEM, TVGN_CARET, (LPARAM)nodeSelected);<br />
                  //itoa((int)nodeSelected, cText, 10);<br />
                  tempTvItem.mask = TVIF_TEXT|TVIF_HANDLE;<br />
                  tempTvItem.hItem = nodeSelected;<br />
                  tempTvItem.pszText = cTemp;<br />
                  tempTvItem.cchTextMax = 256;<br />
                  SendMessage(treeViewHwnd, TVM_GETITEM, 0, (LPARAM)&tempTvItem);<br />
                  MessageBox(NULL, tempTvItem.pszText, "", MB_OK);<br />
...<br />

My problem is that the select part. The node isn`t selected and in the MessageBox nothing is shown.
What`s the problem? I want when I select the node it remais highlighted and selected.
AnswerRe: How can I select a node in a treeview Pin
Ali Rafiee19-Jul-06 9:21
Ali Rafiee19-Jul-06 9:21 
GeneralRe: How can I select a node in a treeview [modified] Pin
Alex Cutovoi19-Jul-06 11:18
Alex Cutovoi19-Jul-06 11:18 
GeneralRe: How can I select a node in a treeview Pin
Ali Rafiee19-Jul-06 11:23
Ali Rafiee19-Jul-06 11:23 
GeneralRe: How can I select a node in a treeview Pin
Alex Cutovoi20-Jul-06 2:24
Alex Cutovoi20-Jul-06 2:24 
QuestionSerial Communication with a Garmin Device Pin
dinesh_pam19-Jul-06 8:40
dinesh_pam19-Jul-06 8:40 
QuestionRe: Serial Communication with a Garmin Device Pin
cppcook19-Jul-06 9:02
cppcook19-Jul-06 9:02 
AnswerRe: Serial Communication with a Garmin Device Pin
kitty519-Jul-06 9:11
kitty519-Jul-06 9:11 
GeneralRe: Serial Communication with a Garmin Device Pin
dinesh_pam19-Jul-06 9:29
dinesh_pam19-Jul-06 9:29 
GeneralRe: Serial Communication with a Garmin Device Pin
kitty519-Jul-06 9:45
kitty519-Jul-06 9:45 
GeneralRe: Serial Communication with a Garmin Device Pin
dinesh_pam19-Jul-06 10:06
dinesh_pam19-Jul-06 10:06 
AnswerRe: Serial Communication with a Garmin Device Pin
led mike19-Jul-06 10:33
led mike19-Jul-06 10:33 
QuestionDialog Box DDX problem Pin
kitty519-Jul-06 8:13
kitty519-Jul-06 8:13 
AnswerRe: Dialog Box DDX problem Pin
Michael Dunn19-Jul-06 8:30
sitebuilderMichael Dunn19-Jul-06 8:30 
GeneralRe: Dialog Box DDX problem Pin
kitty519-Jul-06 8:32
kitty519-Jul-06 8:32 
QuestionRe: Dialog Box DDX problem [modified] Pin
kitty521-Jul-06 3:10
kitty521-Jul-06 3:10 
QuestionRe: Dialog Box DDX problem Pin
David Crow19-Jul-06 9:29
David Crow19-Jul-06 9:29 
AnswerRe: Dialog Box DDX problem Pin
kitty520-Jul-06 3:47
kitty520-Jul-06 3:47 

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.