Hi Experts
Hi Want to set the text for tooltips window
I write the following code for reading text from tooltips :
hWndToolTip = ::FindWindow("tooltips_class32",NULL);
iToolTipLen = ::SendMessage(hWndToolTip,WM_GETTEXTLENGTH,0,0);
strToolTipText = new TCHAR[iToolTipLen];
::SendMessage(hWndToolTip,WM_GETTEXT,(WPARAM)iToolTipLen+1,(LPARAM)strToolTipText );
Now I am trying to set the text in same tooltips window by using following aproach
char * strMsg = "This user defined tooltip";
SendMessageW(hWndToolTip, WM_SETTEXT, 0, (LPARAM)strMsg);
but am not able to change tooltips text at runtime
Can u please help me to explain what is going wrong with this code n what extra I need to do???
Thanks in adv.