oledlg: Register a couple of messages.
This commit is contained in:
parent
f07bbbd434
commit
bda36798ad
|
@ -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)
|
||||||
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)
|
||||||
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;
|
||||||
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__ */
|
||||||
|
|
Loading…
Reference in New Issue