Click to See Complete Forum and Search --> : ChildWindowFromPoint


Ramakrishnan V
May 15th, 1999, 11:45 PM
Hi,
I have two edit controls and two command buttons in a dialog. One of the edit controls, I use as status bar. When the user moves the mouse over a control, I want to display a message in the second edit (like tooltip). I tried ChildWindowFromPoint, but found it to work with disabled and hidden controls only. Help me on how I should proceed.
Thanks and regards
Ramki

Playman Cheng
May 17th, 1999, 10:04 AM
Try the following method:
Hanle the WM_SETCURSOR message of the dialog;
in the map function,add codes as following:


if(pWnd!=this)
switch(pWnd->GetDlgCtrlID())
{
case ID1:
Set the edit text.
break;
case ID2:
.........
break;
case ID3:
.........
break;
}