3,882
社区成员
发帖
与我相关
我的任务
分享
// namespace
class D3D
{
public:
D3D();
~D3D();
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
private:
};
LRESULT CALLBACK D3D::WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
wndclass.lpfnWndProc = (WNDPROC) D3D::WndProc; //这行报错