1
0
mirror of https://github.com/chibicitiberiu/rainmeter-studio.git synced 2024-02-24 04:33:31 +00:00

Button state is reset correctly if the left mouse button is released outside the window.

This commit is contained in:
Kimmo Pekkola 2009-07-29 12:33:02 +00:00
parent fce069e2c7
commit 5d9ed7ca80

@ -327,6 +327,12 @@ bool CMeterButton::MouseMove(POINT pos)
}
else
{
// If the left button is not down anymore the cliked state needs to be set false
if ((GetKeyState(VK_LBUTTON) & 0x8000) == 0)
{
m_Clicked = false;
}
if (m_State == BUTTON_STATE_DOWN)
{
m_State = BUTTON_STATE_NORMAL;