mCtrl
html.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2012 Martin Mitas
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2.1 of the License, or
7  * (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef MCTRL_HTML_H
20 #define MCTRL_HTML_H
21 
22 #include <mCtrl/defs.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
154 BOOL MCTRL_API mcHtml_Initialize(void);
155 
161 void MCTRL_API mcHtml_Terminate(void);
162 
163 
169 #define MC_WC_HTMLW L"mCtrl.html"
170 
171 #define MC_WC_HTMLA "mCtrl.html"
172 
180 #define MC_HS_NOCONTEXTMENU 0x0001
181 
188 
195 #define MC_HM_GOTOURLW (WM_USER + 10)
196 
203 #define MC_HM_GOTOURLA (WM_USER + 11)
204 
212 #define MC_HM_SETTAGCONTENTSW (WM_USER + 12)
213 
221 #define MC_HM_SETTAGCONTENTSA (WM_USER + 13)
222 
231 #define MC_HM_GOBACK (WM_USER + 14)
232 
241 #define MC_HM_CANBACK (WM_USER + 15)
242 
250 typedef struct MC_NMHTMLURLW_tag {
252  NMHDR hdr;
254  LPCWSTR pszUrl;
255 } MC_NMHTMLURLW;
256 
261 typedef struct MC_NMHTMLURLA_tag {
263  NMHDR hdr;
265  LPCSTR pszUrl;
266 } MC_NMHTMLURLA;
267 
272 typedef struct MC_NMHTMLPROGRESS_tag {
274  NMHDR hdr;
276  LONG lProgress;
280 
285 typedef struct MC_NMHTMLTEXTW_tag {
287  NMHDR hdr;
289  LPCWSTR pszText;
291 
296 typedef struct MC_NMHTMLTEXTA_tag {
298  NMHDR hdr;
300  LPCSTR pszText;
302 
307 typedef struct MC_NMHTMLHISTORY_tag {
309  NMHDR hdr;
311  BOOL bCanBack;
315 
316 
321 
329 #define MC_HN_APPLINK ((0U-2000U) + 0x0001)
330 
338 #define MC_HN_DOCUMENTCOMPLETE ((0U-2000U) + 0x0002)
339 
350 #define MC_HN_PROGRESS ((0U-2000U) + 0x0003)
351 
362 #define MC_HN_STATUSTEXT ((0U-2000U) + 0x0004)
363 
374 #define MC_HN_TITLETEXT ((0U-2000U) + 0x0005)
375 
389 #define MC_HN_HISTORY ((0U-2000U) + 0x0006)
390 
405 #define MC_HN_NEWWINDOW ((0U-2000U) + 0x0007)
406 
414 
416 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
417 
418 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
419 
420 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
421 
422 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
423 
424 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
425 
430 #ifdef __cplusplus
431 } /* extern "C" */
432 #endif
433 
434 #endif /* MCTRL_HTML_H */