[idd] helper: implement basic config class

This commit is contained in:
Quantum
2025-09-14 16:04:25 -04:00
committed by Geoffrey McRae
parent 9009217366
commit 042450a708
8 changed files with 119 additions and 8 deletions

View File

@@ -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()