CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    ChildWindowFromPoint

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: ChildWindowFromPoint

    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;
    }





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured