BOOL GUIAPI ShowBitmap( HDC hDC, int xPos, int yPos, char* pFile ) { ClientToWindow(hDC->hWnd,&xPos,&yPos); return winShowBitmap(hDC,xPos,yPos,pFile); }
BOOL GUIAPI ShowBitmapWithTrColor( HDC hDC, int xPos, int yPos, char* pFile, COLORREF crTrColor ) { ClientToWindow(hDC->hWnd,&xPos,&yPos); return winShowBitmapWithTrColor(hDC,xPos,yPos,pFile,crTrColor); }
//para ncount is invalid //this function implemented for gis //lpPoint is left top of string position BOOL GUIAPI DrawTextAngle( HDC hDC, char* lpString, int nCount, POINT* lpPoint, double fDirection ) { ClientToWindow(hDC->hWnd,&lpPoint->x,&lpPoint->y); return winDrawTextAngle(hDC,lpString,nCount,lpPoint,fDirection); }
bool GUIWindow::IsMousedOver() { Point derp(Input::ClientCursorPos.x, Input::ClientCursorPos.y); return Collision::PointToRect(ClientToWindow(derp), ClientArea); }