Changed GetCursorPos() to GetMessagePos()

See: http://blogs.msdn.com/b/oldnewthing/archive/2009/06/18/9771135.aspx
This commit is contained in:
Birunthan Mohanathas
2012-11-24 13:22:33 +02:00
parent 950f86add1
commit 6a507dc761
6 changed files with 22 additions and 19 deletions

View File

@@ -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);
}