mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks
This commit is contained in:
parent
579e2df81e
commit
288e68107d
@ -782,11 +782,11 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
|
|||||||
wc.lpfnWndProc = (WNDPROC)MainWndProc;
|
wc.lpfnWndProc = (WNDPROC)MainWndProc;
|
||||||
wc.hInstance = m_Instance;
|
wc.hInstance = m_Instance;
|
||||||
wc.lpszClassName = RAINMETER_CLASS_NAME;
|
wc.lpszClassName = RAINMETER_CLASS_NAME;
|
||||||
RegisterClass(&wc);
|
ATOM className = RegisterClass(&wc);
|
||||||
|
|
||||||
m_Window = CreateWindowEx(
|
m_Window = CreateWindowEx(
|
||||||
WS_EX_TOOLWINDOW,
|
WS_EX_TOOLWINDOW,
|
||||||
RAINMETER_CLASS_NAME,
|
MAKEINTATOM(className),
|
||||||
RAINMETER_WINDOW_NAME,
|
RAINMETER_WINDOW_NAME,
|
||||||
WS_POPUP | WS_DISABLED,
|
WS_POPUP | WS_DISABLED,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
|
@ -68,14 +68,13 @@ void CSystem::Initialize(HINSTANCE instance)
|
|||||||
WNDCLASS wc = {0};
|
WNDCLASS wc = {0};
|
||||||
wc.lpfnWndProc = (WNDPROC)WndProc;
|
wc.lpfnWndProc = (WNDPROC)WndProc;
|
||||||
wc.hInstance = instance;
|
wc.hInstance = instance;
|
||||||
wc.lpszClassName = L"RainmeterSystemClass";
|
wc.lpszClassName = L"RainmeterSystem";
|
||||||
|
ATOM className = RegisterClass(&wc);
|
||||||
RegisterClass(&wc);
|
|
||||||
|
|
||||||
c_Window = CreateWindowEx(
|
c_Window = CreateWindowEx(
|
||||||
WS_EX_TOOLWINDOW,
|
WS_EX_TOOLWINDOW,
|
||||||
L"RainmeterSystemClass",
|
MAKEINTATOM(className),
|
||||||
L"SystemWindow",
|
L"System",
|
||||||
WS_POPUP | WS_DISABLED,
|
WS_POPUP | WS_DISABLED,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
@ -88,8 +87,8 @@ void CSystem::Initialize(HINSTANCE instance)
|
|||||||
|
|
||||||
c_HelperWindow = CreateWindowEx(
|
c_HelperWindow = CreateWindowEx(
|
||||||
WS_EX_TOOLWINDOW,
|
WS_EX_TOOLWINDOW,
|
||||||
L"RainmeterSystemClass",
|
MAKEINTATOM(className),
|
||||||
L"PositioningHelperWindow",
|
L"PositioningHelper",
|
||||||
WS_POPUP | WS_DISABLED,
|
WS_POPUP | WS_DISABLED,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
@ -875,7 +874,7 @@ bool CSystem::CheckDesktopState(HWND WorkerW)
|
|||||||
|
|
||||||
if (WorkerW && IsWindowVisible(WorkerW))
|
if (WorkerW && IsWindowVisible(WorkerW))
|
||||||
{
|
{
|
||||||
hwnd = FindWindowEx(NULL, WorkerW, L"RainmeterSystemClass", L"SystemWindow");
|
hwnd = FindWindowEx(NULL, WorkerW, L"RainmeterSystem", L"System");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool stateChanged = (hwnd && !c_ShowDesktop) || (!hwnd && c_ShowDesktop);
|
bool stateChanged = (hwnd && !c_ShowDesktop) || (!hwnd && c_ShowDesktop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user