避免CUSTOM_DRAW消息触发设置操作
This commit is contained in:
parent
5527be048e
commit
3289a7b1a8
|
@ -852,10 +852,14 @@ BOOL dlg_page::on_notify(int ctrl_id, LPNMHDR pnmh)
|
||||||
pnmh->code == NM_TOOLTIPSCREATED;
|
pnmh->code == NM_TOOLTIPSCREATED;
|
||||||
GetClassNameW((HWND)pnmh->hwndFrom, cls, _countof(cls) - 1);
|
GetClassNameW((HWND)pnmh->hwndFrom, cls, _countof(cls) - 1);
|
||||||
if (IS_TRACKBAR(cls))
|
if (IS_TRACKBAR(cls))
|
||||||
{
|
{
|
||||||
if (pnmh->code != NM_RELEASEDCAPTURE &&
|
if (pnmh->code != NM_RELEASEDCAPTURE)
|
||||||
pnmh->code != NM_CUSTOMDRAW)
|
{
|
||||||
return FALSE;
|
if (pnmh->code == NM_CUSTOMDRAW && (GetAsyncKeyState(VK_LBUTTON) & 0x8000) && GetFocus() == pnmh->hwndFrom) // drag track ...
|
||||||
|
;
|
||||||
|
else
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (IS_UPDOWN_ARROW(cls))
|
else if (IS_UPDOWN_ARROW(cls))
|
||||||
{
|
{
|
||||||
|
|
|
@ -784,7 +784,7 @@ int scanner::init_options_id(void)
|
||||||
|
|
||||||
while ((desc = hg_sane_middleware::instance()->get_option_descriptor(handle_, op_id)))
|
while ((desc = hg_sane_middleware::instance()->get_option_descriptor(handle_, op_id)))
|
||||||
{
|
{
|
||||||
void* val = hg_sane_middleware::instance()->get_def_value(handle_, op_id);
|
void* val = hg_sane_middleware::instance()->get_def_value(handle_, op_id, NULL, true);
|
||||||
if (val)
|
if (val)
|
||||||
{
|
{
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
Loading…
Reference in New Issue