mCtrl  0.9.5
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 #include <mCtrl/_common.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
167 
172 BOOL MCTRL_API mcHtml_Initialize(void);
173 
177 void MCTRL_API mcHtml_Terminate(void);
178 
186 
188 #define MC_WC_HTMLW L"mCtrl.html"
189 
190 #define MC_WC_HTMLA "mCtrl.html"
191 
199 
201 #define MC_HS_NOCONTEXTMENU 0x0001
202 
210 
217 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
218 
225 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
226 
234 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
235 
243 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
244 
253 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
254 
263 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
264 
272 
277 typedef struct MC_NMHTMLURLW_tag {
279  NMHDR hdr;
281  LPCWSTR pszUrl;
282 } MC_NMHTMLURLW;
283 
288 typedef struct MC_NMHTMLURLA_tag {
290  NMHDR hdr;
292  LPCSTR pszUrl;
293 } MC_NMHTMLURLA;
294 
299 typedef struct MC_NMHTMLPROGRESS_tag {
301  NMHDR hdr;
303  LONG lProgress;
307 
312 typedef struct MC_NMHTMLTEXTW_tag {
314  NMHDR hdr;
316  LPCWSTR pszText;
318 
323 typedef struct MC_NMHTMLTEXTA_tag {
325  NMHDR hdr;
327  LPCSTR pszText;
329 
334 typedef struct MC_NMHTMLHISTORY_tag {
336  NMHDR hdr;
338  BOOL bCanBack;
342 
350 
358 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
359 
367 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
368 
379 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
380 
391 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
392 
403 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
404 
418 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
419 
434 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
435 
443 
445 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
446 
447 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
448 
449 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
450 
451 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
452 
453 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
454 
459 #ifdef __cplusplus
460 } /* extern "C" */
461 #endif
462 
463 #endif /* MCTRL_HTML_H */