Commit bda36798 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

oledlg: Register a couple of messages.

parent f07bbbd4
...@@ -45,6 +45,9 @@ UINT cf_ownerlink; ...@@ -45,6 +45,9 @@ UINT cf_ownerlink;
UINT cf_filename; UINT cf_filename;
UINT cf_filenamew; UINT cf_filenamew;
UINT oleui_msg_help;
UINT oleui_msg_enddialog;
static void register_clipboard_formats(void) static void register_clipboard_formats(void)
{ {
/* These used to be declared in olestd.h, but that seems to have been removed from the api */ /* 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(void) ...@@ -68,6 +71,12 @@ static void register_clipboard_formats(void)
cf_filenamew = RegisterClipboardFormatW(CF_FILENAMEWW); 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 * DllMain
*/ */
...@@ -80,6 +89,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) ...@@ -80,6 +89,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
OLEDLG_hInstance = hinstDLL; OLEDLG_hInstance = hinstDLL;
register_clipboard_formats(); register_clipboard_formats();
register_messages();
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
......
...@@ -32,4 +32,7 @@ extern UINT cf_ownerlink; ...@@ -32,4 +32,7 @@ extern UINT cf_ownerlink;
extern UINT cf_filename; extern UINT cf_filename;
extern UINT cf_filenamew; extern UINT cf_filenamew;
extern UINT oleui_msg_help;
extern UINT oleui_msg_enddialog;
#endif /* __OLEDLG_PRIVATE_H__ */ #endif /* __OLEDLG_PRIVATE_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment