[idd] helper: implement basic config class
This commit is contained in:
1 parent
9009217366
commit
042450a708
8 files changed
+119
-8
No files matched your search
@@ -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