GetClientRect
在CMyView中调用::GetClientRect(this,&rct);为什么出错?
-------------------Configuration: OpenGL - Win32 Debug--------------------
cannot convert parameter 1 from 'class COpenGLView *const ' to 'struct HWND__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
BOOL GetClientRect(
HWND hWnd, // handle to window
LPRECT lpRect // address of structure for client coordinates
);
hWnd指向视类的窗口句柄应是那个,this不对吗??