how we can use MapWindowPoints
-
i canot understand how to use MapWindowPoints.so please tell how to use this with a\small example. thank u, sree.
-
i canot understand how to use MapWindowPoints.so please tell how to use this with a\small example. thank u, sree.
If hwnd1 or hwnd2(or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style), MapWindowPoints will automatically adjust mirrored coordinates if you pass two or less points in lpPoints.
RECT rect[10]; for(int i =0; i < (sizeof(rect)/sizeof(rect[0])); i++) { MapWindowPoints(hWnd1, hWnd2, (LPPOINT)(&rect[i]), (sizeof(RECT)/sizeof(POINT)) ); }
//where hwnd1,hwnd2 are handle to the mirrored windows Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
If hwnd1 or hwnd2(or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style), MapWindowPoints will automatically adjust mirrored coordinates if you pass two or less points in lpPoints.
RECT rect[10]; for(int i =0; i < (sizeof(rect)/sizeof(rect[0])); i++) { MapWindowPoints(hWnd1, hWnd2, (LPPOINT)(&rect[i]), (sizeof(RECT)/sizeof(POINT)) ); }
//where hwnd1,hwnd2 are handle to the mirrored windows Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_