oledlg: Only send the end dialog msg if the button is actually clicked.
This commit is contained in:
parent
b9b812da70
commit
9c8dd8fb86
|
@ -605,8 +605,14 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
|
||||||
}
|
}
|
||||||
case IDOK:
|
case IDOK:
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
|
switch(HIWORD(wp))
|
||||||
|
{
|
||||||
|
case BN_CLICKED:
|
||||||
send_end_dialog_msg(hdlg, ps_struct, LOWORD(wp));
|
send_end_dialog_msg(hdlg, ps_struct, LOWORD(wp));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
default:
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue