Huw Davies : oledlg: Call the hook proc if present.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 20 04:46:04 CDT 2006
Module: wine
Branch: master
Commit: ddaa4801a952bf1ac3478d5dbacd65d76145bbdd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddaa4801a952bf1ac3478d5dbacd65d76145bbdd
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Oct 19 11:27:07 2006 +0100
oledlg: Call the hook proc if present.
---
dlls/oledlg/pastespl.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index ece44fd..d4cdadc 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -415,6 +415,12 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND
{
if(!ps_struct)
return 0;
+
+ if(ps_struct->ps->lpfnHook)
+ {
+ INT_PTR ret = ps_struct->ps->lpfnHook(hdlg, msg, wp, lp);
+ if(ret) return ret;
+ }
}
switch(msg)
@@ -442,6 +448,8 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND
SetFocus(GetDlgItem(hdlg, IDC_PS_DISPLAYLIST));
+ if(ps_struct->ps->lpfnHook)
+ ps_struct->ps->lpfnHook(hdlg, msg, 0, 0);
return FALSE; /* use new focus */
}
case WM_COMMAND:
More information about the wine-cvs
mailing list