Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.cpp
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /* The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard | /* The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard | ||||
| * focus. We want to prevent this if a window is still active and it loses focus to | * focus. We want to prevent this if a window is still active and it loses focus to | ||||
| * nowhere. */ | * nowhere. */ | ||||
| if (!wParam && hwnd == ::GetActiveWindow()) { | if (!wParam && hwnd == ::GetActiveWindow()) { | ||||
| ::SetFocus(hwnd); | ::SetFocus(hwnd); | ||||
| } | } | ||||
| break; | break; | ||||
| case WM_SETTINGCHANGE: | case WM_SETTINGCHANGE: | ||||
| if (wcscmp(LPCWSTR(lParam), L"ImmersiveColorSet") == 0) { | /* Microsoft: "Note that some applications send this message with lParam set to NULL" */ | ||||
| if ((lParam != 0) && (wcscmp(LPCWSTR(lParam), L"ImmersiveColorSet") == 0)) { | |||||
| window->ThemeRefresh(); | window->ThemeRefresh(); | ||||
| } | } | ||||
| break; | break; | ||||
| //////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////// | ||||
| // Window events, ignored | // Window events, ignored | ||||
| //////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////// | ||||
| case WM_WINDOWPOSCHANGED: | case WM_WINDOWPOSCHANGED: | ||||
| /* The WM_WINDOWPOSCHANGED message is sent to a window whose size, position, or place | /* The WM_WINDOWPOSCHANGED message is sent to a window whose size, position, or place | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||