c++ - Send WM_NCMOUSEMOVE and WM_SETCURSOR messages. How to fill parameters? -


i need send aforementioned messages. documentation says:

wm_ncmousemove. lparam. points structure contains x- , y-coordinates of cursor.

how can create lparam structure?

wm_setcursor. wparam. handle window contains cursor.

how can pass it?

wm_setcursor. lparam. high-order word of lparam specifies identifier of mouse message.

what identifier?

you can consider lparam , wparam numerical values data types.

you can use makelparam , makewparam macros create own lparams , wparams , pass them.

here detail them: makelaparm : https://msdn.microsoft.com/en-us/library/ms632661(v=vs.85).aspx makewparam : https://msdn.microsoft.com/en-us/library/ms632664(v=vs.85).aspx

so, pass appropriate values , return lparam. when documentation says : wparam. handle window contains cursor. can create lparam this: lparam lparam = m_hwnd; //where m_hwnd handle window.

otherwise can specify high , low macro , create lparam , wparam you. , pass points lparam this:

points pt; pt.x = pt.y = 120; lparam lparam = &pt; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -