oledlg: Call the hook proc if present.
This commit is contained in:
parent
e898890241
commit
ddaa4801a9
@ -415,6 +415,12 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
|
|||||||
{
|
{
|
||||||
if(!ps_struct)
|
if(!ps_struct)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if(ps_struct->ps->lpfnHook)
|
||||||
|
{
|
||||||
|
INT_PTR ret = ps_struct->ps->lpfnHook(hdlg, msg, wp, lp);
|
||||||
|
if(ret) return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(msg)
|
switch(msg)
|
||||||
@ -442,6 +448,8 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
|
|||||||
|
|
||||||
SetFocus(GetDlgItem(hdlg, IDC_PS_DISPLAYLIST));
|
SetFocus(GetDlgItem(hdlg, IDC_PS_DISPLAYLIST));
|
||||||
|
|
||||||
|
if(ps_struct->ps->lpfnHook)
|
||||||
|
ps_struct->ps->lpfnHook(hdlg, msg, 0, 0);
|
||||||
return FALSE; /* use new focus */
|
return FALSE; /* use new focus */
|
||||||
}
|
}
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user