mCtrl  0.9.0
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 
159 BOOL MCTRL_API mcHtml_Initialize(void);
160 
164 void MCTRL_API mcHtml_Terminate(void);
165 
173 
175 #define MC_WC_HTMLW L"mCtrl.html"
176 
177 #define MC_WC_HTMLA "mCtrl.html"
178 
186 
188 #define MC_HS_NOCONTEXTMENU 0x0001
189 
197 
204 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
205 
212 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
213 
221 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
222 
230 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
231 
240 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
241 
250 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
251 
259 
264 typedef struct MC_NMHTMLURLW_tag {
266  NMHDR hdr;
268  LPCWSTR pszUrl;
269 } MC_NMHTMLURLW;
270 
275 typedef struct MC_NMHTMLURLA_tag {
277  NMHDR hdr;
279  LPCSTR pszUrl;
280 } MC_NMHTMLURLA;
281 
286 typedef struct MC_NMHTMLPROGRESS_tag {
288  NMHDR hdr;
290  LONG lProgress;
294 
299 typedef struct MC_NMHTMLTEXTW_tag {
301  NMHDR hdr;
303  LPCWSTR pszText;
305 
310 typedef struct MC_NMHTMLTEXTA_tag {
312  NMHDR hdr;
314  LPCSTR pszText;
316 
321 typedef struct MC_NMHTMLHISTORY_tag {
323  NMHDR hdr;
325  BOOL bCanBack;
329 
337 
345 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
346 
354 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
355 
366 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
367 
378 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
379 
390 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
391 
405 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
406 
421 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
422 
430 
432 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
433 
434 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
435 
436 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
437 
438 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
439 
440 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
441 
446 #ifdef __cplusplus
447 } /* extern "C" */
448 #endif
449 
450 #endif /* MCTRL_HTML_H */