修复按钮状态跟随BUG
This commit is contained in:
parent
6f314d712c
commit
ae18d9d81f
|
@ -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_))
|
||||
|
|
Loading…
Reference in New Issue