Huw Davies : oledlg: Register a couple of messages.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 20 04:45:57 CDT 2006
Module: wine
Branch: master
Commit: bda36798ade3048666b17011b7a7357fa3401e95
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bda36798ade3048666b17011b7a7357fa3401e95
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Oct 18 21:55:43 2006 +0100
oledlg: Register a couple of messages.
---
dlls/oledlg/oledlg_main.c | 10 ++++++++++
dlls/oledlg/oledlg_private.h | 3 +++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/oledlg/oledlg_main.c b/dlls/oledlg/oledlg_main.c
index 6ee2de9..b9a4d65 100644
--- a/dlls/oledlg/oledlg_main.c
+++ b/dlls/oledlg/oledlg_main.c
@@ -45,6 +45,9 @@ UINT cf_ownerlink;
UINT cf_filename;
UINT cf_filenamew;
+UINT oleui_msg_help;
+UINT oleui_msg_enddialog;
+
static void register_clipboard_formats(void)
{
/* These used to be declared in olestd.h, but that seems to have been removed from the api */
@@ -68,6 +71,12 @@ static void register_clipboard_formats(v
cf_filenamew = RegisterClipboardFormatW(CF_FILENAMEWW);
}
+static void register_messages(void)
+{
+ oleui_msg_help = RegisterWindowMessageW(SZOLEUI_MSG_HELPW);
+ oleui_msg_enddialog = RegisterWindowMessageW(SZOLEUI_MSG_ENDDIALOGW);
+}
+
/***********************************************************************
* DllMain
*/
@@ -80,6 +89,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,
DisableThreadLibraryCalls(hinstDLL);
OLEDLG_hInstance = hinstDLL;
register_clipboard_formats();
+ register_messages();
break;
case DLL_PROCESS_DETACH:
diff --git a/dlls/oledlg/oledlg_private.h b/dlls/oledlg/oledlg_private.h
index c0b16e5..4ff3bb6 100644
--- a/dlls/oledlg/oledlg_private.h
+++ b/dlls/oledlg/oledlg_private.h
@@ -32,4 +32,7 @@ extern UINT cf_ownerlink;
extern UINT cf_filename;
extern UINT cf_filenamew;
+extern UINT oleui_msg_help;
+extern UINT oleui_msg_enddialog;
+
#endif /* __OLEDLG_PRIVATE_H__ */
More information about the wine-cvs
mailing list