1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
FUNCTION FocusChange(LOCAL uMsg is unsigned int, LOCAL wParam is unsigned int, LOCAL lParam is system int)
OnOff is boolean = LOINT(wParam)
FromPlayer is int = HIINT(wParam)
nFocus is int = 1
IF GetForegroundWindow() = gP.hMain THEN nFocus = 2
IF GetForegroundWindow() = gP.hPlayer THEN nFocus = 2
IF nFocus <> gP.wasFocus THEN
IF nFocus = 2 THEN //GetForegroundWindow() = gP.hMain then// OR API(USER32, "WindowFromPoint", &p) = gP.hPlayer THEN
Caption_bar..BrushColor = RGB(105,105,105)
Caption_Main..Color = RGB(255,255,255)
ELSE
Caption_bar..BrushColor = RGB(153,153,153)
Caption_Main..Color = RGB(192,192,192)
END
END
gP.wasFocus = nFocus
//IF OnOff THEN
// IF IsWindow(gP.hPlayer) THEN
// IF FromPlayer = WM_NCACTIVATE THEN
// SetWindowPos(gP.hPlayer, HWND_TOP, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE)
// SetWindowPos(gP.hMain, gP.hPlayer, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE)
// ELSE
// SetWindowPos(gP.hPlayer, gP.hMain, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE)
// END
// END
//END
uMsg = uMsg; wParam = wParam; lParam = lParam
RESULT 1 // <---- Pour éviter que la barre de titre ne se réaffiche par dessus mon Skin |
Partager