Click here to Skip to main content
15,916,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ reference continued Pin
Christian Graus31-May-07 13:29
protectorChristian Graus31-May-07 13:29 
GeneralRe: C++ reference continued Pin
Stephen Hewitt31-May-07 14:26
Stephen Hewitt31-May-07 14:26 
GeneralRe: C++ reference continued Pin
Christian Graus31-May-07 18:28
protectorChristian Graus31-May-07 18:28 
GeneralRe: C++ reference continued Pin
Stephen Hewitt31-May-07 18:57
Stephen Hewitt31-May-07 18:57 
AnswerRe: C++ reference continued Pin
Mark Salsbery31-May-07 14:08
Mark Salsbery31-May-07 14:08 
GeneralRe: C++ reference continued Pin
C_Zealot31-May-07 14:29
C_Zealot31-May-07 14:29 
AnswerRe: C++ reference continued Pin
Jeffrey Walton31-May-07 20:39
Jeffrey Walton31-May-07 20:39 
GeneralCTreeCtrl - GetSelectedItem [modified] Pin
Vaclav_31-May-07 12:26
Vaclav_31-May-07 12:26 
Please help me find a simple example of CTreeCtrl (view not dialog) actually using TVN_SELCHANGED message and GetSelectedItem function. My code always returns first item in the tree and the MS CmnCtrl1 sample code refuses to give me the whole text of the selected item. I get only first character. It should return CString.

Thanks for reading
Vaclav

I got it!
I have neglected to bypass first TVN_SELCHANGED message which gets posted on initial drawing of first node of the tree! Hence I always see first node "selected".






-- modified at 21:57 Thursday 31st May, 2007
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Naveen31-May-07 15:24
Naveen31-May-07 15:24 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Vaclav_31-May-07 15:55
Vaclav_31-May-07 15:55 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Naveen31-May-07 16:01
Naveen31-May-07 16:01 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Vaclav_31-May-07 16:28
Vaclav_31-May-07 16:28 
QuestionErrors? C++, play with reference Pin
C_Zealot31-May-07 11:55
C_Zealot31-May-07 11:55 
AnswerRe: Errors? C++, play with reference Pin
Mark Salsbery31-May-07 12:13
Mark Salsbery31-May-07 12:13 
GeneralRe: Errors? C++, play with reference Pin
C_Zealot31-May-07 12:16
C_Zealot31-May-07 12:16 
QuestionVC++ 6 -warpper Pin
Tal S.31-May-07 9:54
Tal S.31-May-07 9:54 
AnswerRe: VC++ 6 -warpper Pin
Matthew Faithfull31-May-07 10:06
Matthew Faithfull31-May-07 10:06 
AnswerRe: VC++ 6 -warpper Pin
Chris Losinger31-May-07 10:43
professionalChris Losinger31-May-07 10:43 
AnswerRe: VC++ 6 -warpper Pin
Hamid_RT31-May-07 18:27
Hamid_RT31-May-07 18:27 
Questionconverting from const char [] to 'LPWSTR' Pin
maizhiming31-May-07 9:28
maizhiming31-May-07 9:28 
AnswerRe: converting from const char [] to 'LPWSTR' Pin
Matthew Faithfull31-May-07 9:43
Matthew Faithfull31-May-07 9:43 
AnswerRe: converting from const char [] to 'LPWSTR' Pin
Xing Chen31-May-07 15:18
Xing Chen31-May-07 15:18 
QuestionGetDIBits() function call fails Pin
TheDelChop31-May-07 8:50
TheDelChop31-May-07 8:50 
AnswerRe: GetDIBits() function call fails Pin
John R. Shaw31-May-07 9:17
John R. Shaw31-May-07 9:17 
AnswerRe: GetDIBits() function call fails Pin
Mark Salsbery31-May-07 9:30
Mark Salsbery31-May-07 9:30 

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.