更改分辨率程序
使对话框及控件随着分辨率变化 int cx = GetSystemMetrics( SM_CXSCREEN ); int cy = GetSystemMetrics( SM_CYSCREEN ); double dRatioX=(double)1024/(double)cx; double dRatioY=(768)*1.0/(cy); CRect rect; this->GetWindowRect(rect); rect.top=rect.top; rect.bottom=(rect.bottom-rect.top)/dRatioY+rect.top;