mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed GetCursorPos() to GetMessagePos()
See: http://blogs.msdn.com/b/oldnewthing/archive/2009/06/18/9771135.aspx
This commit is contained in:
@@ -488,8 +488,7 @@ void CRainmeter::Bang_SkinMenu(std::vector<std::wstring>& args, CMeterWindow* me
|
||||
|
||||
if (meterWindow)
|
||||
{
|
||||
POINT pos;
|
||||
GetCursorPos(&pos);
|
||||
POINT pos = CSystem::GetCursorPosition();
|
||||
ShowContextMenu(pos, meterWindow);
|
||||
}
|
||||
else
|
||||
@@ -504,8 +503,7 @@ void CRainmeter::Bang_SkinMenu(std::vector<std::wstring>& args, CMeterWindow* me
|
||||
*/
|
||||
void CRainmeter::Bang_TrayMenu()
|
||||
{
|
||||
POINT pos;
|
||||
GetCursorPos(&pos);
|
||||
POINT pos = CSystem::GetCursorPosition();
|
||||
ShowContextMenu(pos, NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user