Saturday, June 28, 2008

[France/Swiss 2008] 歐陸的轉蛋機




撮影日付:4th FEB 2008
撮影場所:Savoie, France. (フランス)
機材:EOS Kiss digital + EF 24-70mm

[Cat Note]
HDC: Handle to a device context

[Cat Bug] [0001][open]
The AP can not obtain total/useful screen height and width in pixel correctly via below two groups of function on VGA device. (Both groups of function are OK on QVGA device.)
1)
// Always gets 240*320, it should be 480*640
int screenWidth = GetSystemMetrics (SM_CXSCREEN) ;
int screenHeight = GetSystemMetrics (SM_CYSCREEN) ;
2)
// Always gets 240*294, it should be 480*588
HWND catGetDesktop = GetDesktopWindow ();
RECT catDesktopXY;
GetClientRect (catGetDesktop, &catDesktopXY);

☆ 그리고 물으세요. (そして聞いてください。)