Lines Matching refs:hWnd
101 static LRESULT CALLBACK StaticWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
109 ::SetWindowLongPtr(hWnd, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(pWnd));
112 pWnd = GetObjectFromWindow(hWnd);
115 return pWnd->WndProc(hWnd, message, wParam, lParam);
117 return ::DefWindowProc(hWnd, message, wParam, lParam);
120 inline static WinApp* GetObjectFromWindow(HWND hWnd) { return (WinApp*)::GetWindowLongPtr(hWnd, GWLP_USERDATA); }
123 virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) = 0;
128 HWND m_hWnd;