Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to send a dummy message to desktop? Pin
prasad_som11-Oct-06 1:41
prasad_som11-Oct-06 1:41 
AnswerRe: How to send a dummy message to desktop? Pin
Galatei11-Oct-06 23:34
Galatei11-Oct-06 23:34 
QuestionMoving Up to VS 2005 Pin
Andy20211-Oct-06 1:02
Andy20211-Oct-06 1:02 
AnswerRe: Moving Up to VS 2005 Pin
led mike11-Oct-06 4:34
led mike11-Oct-06 4:34 
QuestionRe: Moving Up to VS 2005 Pin
David Crow11-Oct-06 7:22
David Crow11-Oct-06 7:22 
AnswerRe: Moving Up to VS 2005 Pin
Andy20211-Oct-06 21:52
Andy20211-Oct-06 21:52 
GeneralRe: Moving Up to VS 2005 Pin
Galatei11-Oct-06 23:31
Galatei11-Oct-06 23:31 
QuestionReading tree-view control of frontpage Pin
Prasann Mayekar11-Oct-06 0:57
Prasann Mayekar11-Oct-06 0:57 
frontpage has a option to open a web thru file-open web command.
it displays a tree view control. i wanted to read the text of the root node in the control. so i tried the following:

1) HTREEITEM htitem;
htitem=TreeView_GetRoot(hWnd); //hWnd is the handle to the tree control
2) char Buf[80];
TVITEM tvitem;
tvitem.mask=TVIF_TEXT | TVIF_HANDLE;
tvitem.hItem=htitem;
tvitem.pszText=(LPSTR)&Buf;
tvitem.cchTextMax=79;
3) SendMessage(hWnd, TVM_GETITEM, 0, (LPARAM)&tvitem);

but this fails. why?
following works:
1) int cnt=SendMessage(hWnd, TVM_GETCOUNT, 0, 0);
2) SendMessage(hWnd, TVM_SELECTITEM, TVGN_CARET, htitem);

if this works, why tvm_getitem fails?

can anyone help?
thanks


AnswerRe: Reading tree-view control of frontpage Pin
David Crow11-Oct-06 7:28
David Crow11-Oct-06 7:28 
QuestionSDI Help Pin
<color>Aljechin 11-Oct-06 0:53
<color>Aljechin 11-Oct-06 0:53 
AnswerRe: SDI Help Pin
Hamid_RT11-Oct-06 1:33
Hamid_RT11-Oct-06 1:33 
GeneralRe: SDI Help Pin
<color>Aljechin 11-Oct-06 1:42
<color>Aljechin 11-Oct-06 1:42 
GeneralRe: SDI Help Pin
Hamid_RT11-Oct-06 1:48
Hamid_RT11-Oct-06 1:48 
GeneralRe: SDI Help Pin
<color>Aljechin 11-Oct-06 1:53
<color>Aljechin 11-Oct-06 1:53 
GeneralRe: SDI Help Pin
Hamid_RT11-Oct-06 8:05
Hamid_RT11-Oct-06 8:05 
GeneralRe: SDI Help Pin
David Crow11-Oct-06 7:32
David Crow11-Oct-06 7:32 
AnswerRe: SDI Help Pin
Reagan Conservative11-Oct-06 3:27
Reagan Conservative11-Oct-06 3:27 
QuestionHow to move a file Pin
vc++_fragrance11-Oct-06 0:49
vc++_fragrance11-Oct-06 0:49 
AnswerRe: How to move a file Pin
_tasleem11-Oct-06 1:12
_tasleem11-Oct-06 1:12 
AnswerRe: How to move a file Pin
Garth J Lancaster11-Oct-06 2:17
professionalGarth J Lancaster11-Oct-06 2:17 
QuestionRe: How to move a file Pin
David Crow11-Oct-06 7:36
David Crow11-Oct-06 7:36 
Questionconvert TCHAR[75] to CLSID Pin
Sakthiu11-Oct-06 0:41
Sakthiu11-Oct-06 0:41 
AnswerRe: convert TCHAR[75] to CLSID Pin
Hamid_RT11-Oct-06 1:16
Hamid_RT11-Oct-06 1:16 
QuestionPlease help me! Pin
phyton_lim11-Oct-06 0:35
phyton_lim11-Oct-06 0:35 
QuestionRe: Please help me! Pin
David Crow11-Oct-06 7:38
David Crow11-Oct-06 7:38 

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.