mCtrl  0.9.3
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 
166 
171 BOOL MCTRL_API mcHtml_Initialize(void);
172 
176 void MCTRL_API mcHtml_Terminate(void);
177 
185 
187 #define MC_WC_HTMLW L"mCtrl.html"
188 
189 #define MC_WC_HTMLA "mCtrl.html"
190 
198 
200 #define MC_HS_NOCONTEXTMENU 0x0001
201 
209 
216 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
217 
224 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
225 
233 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
234 
242 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
243 
252 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
253 
262 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
263 
271 
276 typedef struct MC_NMHTMLURLW_tag {
278  NMHDR hdr;
280  LPCWSTR pszUrl;
281 } MC_NMHTMLURLW;
282 
287 typedef struct MC_NMHTMLURLA_tag {
289  NMHDR hdr;
291  LPCSTR pszUrl;
292 } MC_NMHTMLURLA;
293 
298 typedef struct MC_NMHTMLPROGRESS_tag {
300  NMHDR hdr;
302  LONG lProgress;
306 
311 typedef struct MC_NMHTMLTEXTW_tag {
313  NMHDR hdr;
315  LPCWSTR pszText;
317 
322 typedef struct MC_NMHTMLTEXTA_tag {
324  NMHDR hdr;
326  LPCSTR pszText;
328 
333 typedef struct MC_NMHTMLHISTORY_tag {
335  NMHDR hdr;
337  BOOL bCanBack;
341 
349 
357 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
358 
366 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
367 
378 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
379 
390 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
391 
402 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
403 
417 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
418 
433 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
434 
442 
444 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
445 
446 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
447 
448 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
449 
450 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
451 
452 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
453 
458 #ifdef __cplusplus
459 } /* extern "C" */
460 #endif
461 
462 #endif /* MCTRL_HTML_H */