MCPcopy Create free account
hub / github.com/Tracktion/choc / createWindow

Method createWindow

choc/gui/choc_DesktopWindow.h:706–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704 }
705
706 HWNDHolder createWindow (DWORD style, int w, int h, void* userData)
707 {
708 if (auto hwnd = CreateWindowW (classAtom, L"", style, CW_USEDEFAULT, CW_USEDEFAULT,
709 w, h, nullptr, nullptr, moduleHandle, nullptr))
710 {
711 SetWindowLongPtr (hwnd, GWLP_USERDATA, (LONG_PTR) userData);
712 return hwnd;
713 }
714
715 return {};
716 }
717
718 auto getClassName() const { return classAtom; }
719

Callers 2

initialiseMethod · 0.80
PimplMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected