mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Code cleanup.
This commit is contained in:
parent
0566e67d54
commit
782fb0fba6
@ -774,7 +774,7 @@ void CSystem::PrepareHelperWindow(HWND WorkerW)
|
|||||||
GetClassName(hwnd, className, 64);
|
GetClassName(hwnd, className, 64);
|
||||||
GetWindowText(hwnd, windowText, 64);
|
GetWindowText(hwnd, windowText, 64);
|
||||||
|
|
||||||
SetLastError(0);
|
SetLastError(ERROR_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert the helper window after the found window
|
// Insert the helper window after the found window
|
||||||
@ -900,6 +900,11 @@ LRESULT CALLBACK CSystem::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
|
|||||||
{
|
{
|
||||||
if (hWnd != c_Window)
|
if (hWnd != c_Window)
|
||||||
{
|
{
|
||||||
|
if (uMsg == WM_WINDOWPOSCHANGING)
|
||||||
|
{
|
||||||
|
((LPWINDOWPOS)lParam)->flags |= SWP_NOZORDER;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user