2 * ReactOS Calc (HtmlHelp support)
4 * Copyright 2007-2017, Carlo Bramini
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #define GET_CB(name) \
24 calc_##name = (type_##name)GetProcAddress(hHtmlHelp, #name); \
25 if (calc_##name == NULL) calc_##name = dummy_##name;
28 dummy_HtmlHelpA(HWND hWnd
, LPCSTR pszFile
, UINT uCommand
, DWORD dwData
);
31 dummy_HtmlHelpW(HWND hWnd
, LPCWSTR pszFile
, UINT uCommand
, DWORD dwData
);
33 type_HtmlHelpA calc_HtmlHelpA
= dummy_HtmlHelpA
;
34 type_HtmlHelpW calc_HtmlHelpW
= dummy_HtmlHelpW
;
36 static HMODULE hHtmlHelp
;
39 dummy_HtmlHelpA(HWND hWnd
, LPCSTR pszFile
, UINT uCommand
, DWORD dwData
)
45 dummy_HtmlHelpW(HWND hWnd
, LPCWSTR pszFile
, UINT uCommand
, DWORD dwData
)
50 void HtmlHelp_Start(HINSTANCE hInstance
)
52 hHtmlHelp
= LoadLibrary(_T("HTMLHELP"));
53 if (hHtmlHelp
== NULL
)
60 void HtmlHelp_Stop(void)
65 FreeLibrary(hHtmlHelp
);