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
    27

    Mouse position and NM_RCLICK

    Hi
    Does anyone know how to get the mouse position (CPoint) when pressing the right mouse button in a TreeView (NM_RCLICK)?
    I need that for checking the item rect, selecting items and displaying context menus...
    thanx for help in advance


    --
    -=SKULK=-

  2. #2
    Guest

    Re: Mouse position and NM_RCLICK

    1, use
    BOOL GetCursorPos(
    LPPOINT lpPoint // address of structure for cursor position
    );

    2,then
    BOOL ScreenToClient(
    HWND hWnd, // window handle for source coordinates
    LPPOINT lpPoint // address of structure containing coordinates
    );


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