mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 03:20:22 +00:00
[idd] helper/CWindow: add onClose and onDestroy hooks
This commit is contained in:
@@ -43,6 +43,10 @@ LRESULT CWindow::handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
case WM_CREATE:
|
||||
return onCreate();
|
||||
case WM_CLOSE:
|
||||
return onClose();
|
||||
case WM_DESTROY:
|
||||
return onDestroy();
|
||||
default:
|
||||
return DefWindowProc(m_hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
@@ -53,6 +57,16 @@ LRESULT CWindow::onCreate()
|
||||
return 0;
|
||||
}
|
||||
|
||||
LRESULT CWindow::onClose()
|
||||
{
|
||||
return DefWindowProc(m_hwnd, WM_CLOSE, 0, 0);
|
||||
}
|
||||
|
||||
LRESULT CWindow::onDestroy()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CWindow::destroy()
|
||||
{
|
||||
if (m_hwnd)
|
||||
|
Reference in New Issue
Block a user