// PDSMathGlobal.h #if !defined(PDSMathGlobal_h) #define PDSMathGlobal_h CRect g_rectView; //显示窗口的客户区大小,加入该变量的原因是因为显示字符串时需要确定窗口大小,该大小不能用wglGetCurrentDC(),CDC::GetWindow(),CWnd::GetClientRect(...) #endif