N
nborshukov
Guest
The coordinates of a widget are relative to frame upper left corner. So, start "scanning" frame widgets you must ClientToScreen frame upper left corner, passing frame hwnd and loading in point structure 0 for x and y. Then ClientToScreen functions returns frame 0,0 in screen coordinates. After that scrren coordinates of a widget are: Top left: frame-x-screen + widget:x, frame-y-screen + widget:y; Bottom right: top-left-x + widget:width-pixels; top-left-y + widget:height-pixels
Continue reading...
Continue reading...