mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 18:08:08 +00:00
[idd] helper: implement basic config class
This commit is contained in:
@@ -47,6 +47,8 @@ LRESULT CWindow::handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
return onClose();
|
||||
case WM_DESTROY:
|
||||
return onDestroy();
|
||||
case WM_NCDESTROY:
|
||||
return onFinal();
|
||||
default:
|
||||
return DefWindowProc(m_hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
@@ -67,13 +69,16 @@ LRESULT CWindow::onDestroy()
|
||||
return 0;
|
||||
}
|
||||
|
||||
LRESULT CWindow::onFinal()
|
||||
{
|
||||
m_hwnd = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CWindow::destroy()
|
||||
{
|
||||
if (m_hwnd)
|
||||
{
|
||||
DestroyWindow(m_hwnd);
|
||||
m_hwnd = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
CWindow::~CWindow()
|
||||
|
Reference in New Issue
Block a user