修复按钮状态跟随BUG

This commit is contained in:
gb 2023-01-30 09:32:55 +08:00
parent 6f314d712c
commit ae18d9d81f
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,7 @@ void dlg_page::set_ctrl_value(HWND ctrl, SANE_Value_Type type, void* val, bool o
{
if (type == SANE_TYPE_BOOL)
{
DWORD id = GetWindowLong(ctrl, GWL_ID);
DWORD id = GetWindowLong(ctrl, GWL_ID) - dlg_page::dyn_id_base;
HWND host = (HWND)GetPropW(ctrl, dlg_page::property_host.c_str());
if (IsWindow(host) && (id == id_custom_area_ || id == id_custom_gamma_))