Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows hooks and TranslateMessage function Pin
Joseph Marzbani15-Sep-08 3:22
Joseph Marzbani15-Sep-08 3:22 
GeneralVC.Net Debugging Pin
Dave Loeser9-Sep-03 7:58
Dave Loeser9-Sep-03 7:58 
GeneralMS Access and datetime picker Pin
Steve Messer9-Sep-03 7:57
Steve Messer9-Sep-03 7:57 
GeneralRe: MS Access and datetime picker Pin
Steve Messer9-Sep-03 22:11
Steve Messer9-Sep-03 22:11 
GeneralWeird Problem! Please Help Pin
Binayak9-Sep-03 7:47
Binayak9-Sep-03 7:47 
GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 9:23
igor19609-Sep-03 9:23 
GeneralRe: Weird Problem! Please Help Pin
Binayak9-Sep-03 10:15
Binayak9-Sep-03 10:15 
GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 11:52
igor19609-Sep-03 11:52 
Instead of yours:

m_TreeCtrl1.SelectItem (hItem);<br />
MessageBox (m_TreeCtrl1.GetItemText(hItem));


Do the following for example:

PostMessage(WM_APP+1, (WPARAM)hItem, 0L);

Now, create WindowProc handler if you don't have already, and put the following code there:

LRESULT CYourWnd::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) <br />
{<br />
	if(message == WM_APP+1)<br />
	{<br />
              MessageBox (m_TreeCtrl1.GetItemText((HITEM)wParam));<br />
        }<br />
...




"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
Generalunable to include Excel Pin
act_x9-Sep-03 7:12
act_x9-Sep-03 7:12 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 7:26
David Crow9-Sep-03 7:26 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:14
act_x9-Sep-03 8:14 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 8:16
David Crow9-Sep-03 8:16 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:17
act_x9-Sep-03 8:17 
Generalchar * to VARIANT Pin
act_x9-Sep-03 6:29
act_x9-Sep-03 6:29 
GeneralRe: char * to VARIANT Pin
Miszou9-Sep-03 6:41
Miszou9-Sep-03 6:41 
QuestionHow to take the address of a smart pointer? Pin
Miszou9-Sep-03 6:16
Miszou9-Sep-03 6:16 
AnswerRe: How to take the address of a smart pointer? Pin
antlers9-Sep-03 6:58
antlers9-Sep-03 6:58 
GeneralRe: How to take the address of a smart pointer? Pin
Miszou9-Sep-03 7:13
Miszou9-Sep-03 7:13 
GeneralTemplate function in a class Pin
ns9-Sep-03 5:50
ns9-Sep-03 5:50 
GeneralRe: Template function in a class Pin
geo_m9-Sep-03 7:02
geo_m9-Sep-03 7:02 
GeneralRe: Template function in a class Pin
Alvaro Mendez9-Sep-03 7:37
Alvaro Mendez9-Sep-03 7:37 
GeneralRe: Template function in a class Pin
ns9-Sep-03 8:37
ns9-Sep-03 8:37 
GeneralRe: Template function in a class Pin
antlers9-Sep-03 9:20
antlers9-Sep-03 9:20 
GeneralRe: Template function in a class Pin
ns9-Sep-03 10:19
ns9-Sep-03 10:19 
GeneralRe: Template function in a class Pin
ns9-Sep-03 10:09
ns9-Sep-03 10:09 

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.