views:

33

answers:

1

Hi All

Where does x and y value i.e window coordinate is stored?

Thanks in advance.

+1  A: 

It is stored in LPARAM of the WndProc CALLBACK function for your window.

Suppose your LPARAM is lParam then

x = LOWORD(lParam) & y = HIWORD(lParam)

Abhi
Both from the LOWORD?
Dustman
Thanks a lot........................
x value will get by LOWORD of lParam and y value will get by HIWORD of lParam.
Abhi
U r welcome...............
Abhi