代码一:
float RatioX, RatioY;
int x = GetSystemMetrics(SM_CXSCREEN);RatioX = (x+720)/1440;
RatioX = 1;
代码二:
float RatioX, RatioY;
int x = GetSystemMetrics(SM_CXSCREEN);
RatioX = x/1440.0;
RatioX = 1.500000;
代码一:
float RatioX, RatioY;
int x = GetSystemMetrics(SM_CXSCREEN);RatioX = (x+720)/1440;
RatioX = 1;
代码二:
float RatioX, RatioY;
int x = GetSystemMetrics(SM_CXSCREEN);
RatioX = x/1440.0;
RatioX = 1.500000;