mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor code tweaks.
This commit is contained in:
@ -679,16 +679,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
if (cds->dwData == RAINMETER_QUERY_ID_SKIN_WINDOWHANDLE)
|
||||
{
|
||||
LPCWSTR configName = (LPCWSTR)cds->lpData;
|
||||
const std::map<std::wstring, CMeterWindow*>& windows = Rainmeter->GetAllMeterWindows();
|
||||
std::map<std::wstring, CMeterWindow*>::const_iterator iter = windows.begin();
|
||||
for ( ; iter != windows.end(); ++iter)
|
||||
{
|
||||
if (wcscmp((*iter).first.c_str(), configName) == 0)
|
||||
{
|
||||
return (LRESULT)(*iter).second->GetWindow();
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
CMeterWindow* mw = Rainmeter->GetMeterWindow(configName);
|
||||
return (mw) ? (LRESULT)mw->GetWindow() : NULL;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user