[idd] helper: make WS_CHILD | WS_VISIBLE the default in widgets

This avoids literally every widget we load having to declare
`WS_CHILD | WS_VISIBLE` and then just break if you forget.
This commit is contained in:
Quantum
2026-07-16 23:13:50 -04:00
committed by Geoffrey McRae
parent b48f8d6fec
commit dcb84451f0
2 changed files with 20 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
HWND CWidget::createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent, DWORD dwExStyle)
{
return CreateWindowEx(dwExStyle, cls, title, style, 0, 0, 0, 0, parent,
return CreateWindowEx(dwExStyle, cls, title, style | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, parent,
NULL, (HINSTANCE)GetModuleHandle(NULL), NULL);
}