mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-22 23:32:03 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user