Feat: Z button ROI region, sends COMMAND_SCREEN_ROI to restrict capture area

This commit is contained in:
yuanyuanxiang committed 2026-06-14 07:34:30 +02:00
1 parent 63ef75b7ce
commit eaa0cc6d0b
10 files changed
+142 -17

No files matched your search

+3 -2
View File
@@ -21,6 +21,7 @@ CIconButton::CIconButton()
, m_bHover(false)
, m_bIsCloseButton(false)
, m_bTracking(false)
, m_bActive(false)
{
}
@@ -42,10 +43,10 @@ void CIconButton::DrawItem(LPDRAWITEMSTRUCT lpDIS)
bool bPressed = (lpDIS->itemState & ODS_SELECTED) != 0;
// Pick background color
COLORREF clrBg = CLR_NORMAL;
COLORREF clrBg = m_bActive ? RGB(0, 100, 200) : CLR_NORMAL;
if (bPressed) {
clrBg = CLR_PRESSED;
} else if (m_bHover) {
} else if (!m_bActive && m_bHover) {
clrBg = m_bIsCloseButton ? CLR_CLOSE_HOVER : CLR_HOVER;
}