[idd] helper: implement basic config class

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2025-09-17 18:05:00 +10:00
1 parent 9009217366
commit 042450a708
8 files changed
+119 -8

No files matched your search

+8 -3
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()