Fixed an issue that ClickThrough mode is broken since r486.

Fixed an issue that cached window message is incorrect in some cases.
This commit is contained in:
spx
2010-09-03 11:05:28 +00:00
parent 7f2c47a956
commit 07d5671707
3 changed files with 277 additions and 176 deletions

View File

@ -2696,7 +2696,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
CopyDataStruct.cbData = (DWORD)((wcslen(command) + 1) * sizeof(WCHAR));
CopyDataStruct.dwData = 1;
CopyDataStruct.lpData = (void*)strCommand.c_str();
meterWindow->OnCopyData(NULL, (LPARAM)&CopyDataStruct);
meterWindow->OnCopyData(WM_COPYDATA, NULL, (LPARAM)&CopyDataStruct);
}
else
{