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