What is the proper way of handeling a mouse drag?
I need to implement mouse drag events which look something like this:

    class MouseDragEvent
    {
    public:
       uint m_btn;
       uint m_x, m_y;
       uint m_delta_x, m_delta_y;
    };


I think I will need to check for WM_LBUTTONDOWN and WM_LBUTTONUP messages and manually find the change in x and y. Is there a drag message or a better way?


What is the proper way of handeling a mouse drag?
===

I need to implement mouse drag events which look something like this:

    class MouseDragEvent
    {
    public:
       uint m_btn;
       uint m_x, m_y;
       uint m_delta_x, m_delta_y;
    };


I think I will need to check for WM_LBUTTONDOWN and WM_LBUTTONUP messages and manually find the change in x and y. Is there a drag message or a better way?

