Announcement

Collapse
No announcement yet.

DDT Hover ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DDT Hover ?

    Hey All,

    While the cursor is hovering over a Control -----
    (Not selecting the control)----
    I would like to identify the control ID #, from within
    the Dialog Callback function, ----I do not wish
    to have a separate Callback func. for the Control---
    I know that CBCTL will give me the Handle of the Control---
    But not the ID #. -----Is this possible to retrieve the ID#?

    Thanks, B

    ------------------

  • #2
    WM_SETCURSOR does it all..
    In a struct you'll receive the WM_MOUSEMOVE etc..

    LRESULT CALLBACK WindowProc(
    HWND hwnd, // handle to window
    UINT uMsg, // WM_SETCURSOR
    WPARAM wParam, // handle to window (HWND)
    LPARAM lParam // hit-test code and mouse message
    );
    Parameters
    wParam
    Handle to the window that contains the cursor.
    lParam
    The low-order word of lParam specifies the hit-test code.
    The high-order word of lParam specifies the identifier of the mouse message.



    ------------------
    http://www.hellobasic.com
    hellobasic

    Comment


    • #3
      So, GetDlgCtrlID( wParam ) should return your ID.


      ------------------
      http://www.hellobasic.com
      hellobasic

      Comment


      • #4
        Thank You, Thank You, Thank You,
        Very Much Edwin------ B.

        ------------------

        Comment

        Working...
        X