mCtrl  0.9.6
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 
168 
173 BOOL MCTRL_API mcHtml_Initialize(void);
174 
178 void MCTRL_API mcHtml_Terminate(void);
179 
187 
189 #define MC_WC_HTMLW L"mCtrl.html"
190 
191 #define MC_WC_HTMLA "mCtrl.html"
192 
200 
202 #define MC_HS_NOCONTEXTMENU 0x0001
203 
211 
218 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
219 
226 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
227 
235 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
236 
244 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
245 
254 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
255 
264 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
265 
273 
278 typedef struct MC_NMHTMLURLW_tag {
280  NMHDR hdr;
282  LPCWSTR pszUrl;
283 } MC_NMHTMLURLW;
284 
289 typedef struct MC_NMHTMLURLA_tag {
291  NMHDR hdr;
293  LPCSTR pszUrl;
294 } MC_NMHTMLURLA;
295 
300 typedef struct MC_NMHTMLPROGRESS_tag {
302  NMHDR hdr;
304  LONG lProgress;
308 
313 typedef struct MC_NMHTMLTEXTW_tag {
315  NMHDR hdr;
317  LPCWSTR pszText;
319 
324 typedef struct MC_NMHTMLTEXTA_tag {
326  NMHDR hdr;
328  LPCSTR pszText;
330 
335 typedef struct MC_NMHTMLHISTORY_tag {
337  NMHDR hdr;
339  BOOL bCanBack;
343 
351 
359 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
360 
368 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
369 
380 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
381 
392 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
393 
404 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
405 
419 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
420 
435 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
436 
444 
446 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
447 
448 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
449 
450 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
451 
452 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
453 
454 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
455 
460 #ifdef __cplusplus
461 } /* extern "C" */
462 #endif
463 
464 #endif /* MCTRL_HTML_H */