MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_SetWindowStyleEx

Function SK_SetWindowStyleEx

src/window.cpp:3635–3665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3633}
3634
3635void
3636SK_SetWindowStyleEx ( DWORD_PTR dwStyleEx_ptr,
3637 SetWindowLongPtr_pfn pDispatchFunc )
3638{
3639 // Clear the high-bits
3640 DWORD_PTR dwStyleEx =
3641 (dwStyleEx_ptr & 0xFFFFFFFF);
3642
3643 // Minimal sane set of extended window styles for sane rendering
3644 dwStyleEx |= WS_EX_APPWINDOW;
3645 //dwStyleEx &= ~( WS_EX_NOACTIVATE | WS_EX_TRANSPARENT | WS_EX_LAYOUTRTL |
3646 // WS_EX_RIGHT | WS_EX_RTLREADING | WS_EX_TOOLWINDOW );
3647
3648 if (config.window.borderless)
3649 dwStyleEx &= ~( WS_EX_CLIENTEDGE | WS_EX_WINDOWEDGE );
3650
3651 if (config.window.allow_drag_n_drop)
3652 dwStyleEx |= WS_EX_ACCEPTFILES;
3653
3654 game_window.actual.style_ex = DWORD_PTR (dwStyleEx);
3655
3656 if (pDispatchFunc == nullptr)
3657 pDispatchFunc = game_window.SetWindowLongPtr;
3658
3659 if (pDispatchFunc == nullptr)
3660 return;
3661
3662 pDispatchFunc ( game_window.hWnd,
3663 GWL_EXSTYLE,
3664 game_window.actual.style_ex );
3665}
3666
3667RECT
3668SK_ComputeClientSize (void)

Callers 7

SK_Window_RemoveBordersFunction · 0.85
SK_Window_RestoreBordersFunction · 0.85
SetWindowLong_MarshallFunction · 0.85
SK_AdjustBorderFunction · 0.85
SK_AdjustWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected