int SetMapMode(
HDC hdc, // handle to device context
int fnMapMode // new mapping mode
);
MM_LOMETRIC Each logical unit is mapped to 0.1 millimeter. Positive x is to the right; positive y is up.
Comunque se vuoi continuare a lvaorare in pixel...ti basta una cosa del genere...
Codice:
inline LONG _y(LONG y, HWND wnd = INVALID_HANDLE_VALUE)
{
static LONG clientHeight = 0;
if(wnd != INVALID_HANDLE_VALUE)
{
RECT r;
if(!GetClientRect(wnd, &r))
return -1;
clientHeight = r.bottom - r.top;
}
return clientHeight - y;
}