Ejemplo n.º 1
0
BOOL GUIAPI 
ShowBitmap(
	HDC hDC, 
	int xPos, 
	int yPos, 
	char* pFile
)
{
	ClientToWindow(hDC->hWnd,&xPos,&yPos);
	return winShowBitmap(hDC,xPos,yPos,pFile);
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
//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);

}
Ejemplo n.º 4
0
bool GUIWindow::IsMousedOver()
{
	Point derp(Input::ClientCursorPos.x, Input::ClientCursorPos.y);
	return Collision::PointToRect(ClientToWindow(derp), ClientArea);
}