mCtrl  0.11.0
html.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015 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 
232 
237 BOOL MCTRL_API mcHtml_Initialize(void);
238 
242 void MCTRL_API mcHtml_Terminate(void);
243 
251 
253 #define MC_WC_HTMLW L"mCtrl.html"
254 
255 #define MC_WC_HTMLA "mCtrl.html"
256 
264 
266 #define MC_HS_NOCONTEXTMENU 0x0001
267 
275 
280 typedef struct MC_HMCALLSCRIPTFUNCW_tag {
282  UINT cbSize;
286  LPWSTR pszRet;
289  int iRet;
291  UINT cArgs;
293  LPCWSTR pszArg1;
296  int iArg1;
298  LPCWSTR pszArg2;
301  int iArg2;
303  LPCWSTR pszArg3;
306  int iArg3;
308  LPCWSTR pszArg4;
311  int iArg4;
313 
318 typedef struct MC_HMCALLSCRIPTFUNCA_tag {
320  UINT cbSize;
324  LPCSTR pszRet;
327  int iRet;
329  UINT cArgs;
331  LPCSTR pszArg1;
334  int iArg1;
336  LPCSTR pszArg2;
339  int iArg2;
341  LPCSTR pszArg3;
344  int iArg3;
346  LPCSTR pszArg4;
349  int iArg4;
351 
356 typedef struct MC_HMCALLSCRIPTFUNCEX_tag {
358  UINT cbSize;
360  const LPCOLESTR pszFuncName;
362  VARIANT* lpvArgs;
364  UINT cArgs;
371  VARIANT* lpRet;
373 
381 
388 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
389 
396 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
397 
405 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
406 
414 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
415 
424 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
425 
434 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
435 
445 #define MC_HM_CALLSCRIPTFUNCW (MC_HM_FIRST + 16)
446 
456 #define MC_HM_CALLSCRIPTFUNCA (MC_HM_FIRST + 17)
457 
467 #define MC_HM_CALLSCRIPTFUNCEX (MC_HM_FIRST + 18)
468 
476 
481 typedef struct MC_NMHTMLURLW_tag {
483  NMHDR hdr;
485  LPCWSTR pszUrl;
486 } MC_NMHTMLURLW;
487 
492 typedef struct MC_NMHTMLURLA_tag {
494  NMHDR hdr;
496  LPCSTR pszUrl;
497 } MC_NMHTMLURLA;
498 
503 typedef struct MC_NMHTMLPROGRESS_tag {
505  NMHDR hdr;
507  LONG lProgress;
511 
516 typedef struct MC_NMHTMLTEXTW_tag {
518  NMHDR hdr;
520  LPCWSTR pszText;
522 
527 typedef struct MC_NMHTMLTEXTA_tag {
529  NMHDR hdr;
531  LPCSTR pszText;
533 
538 typedef struct MC_NMHTMLHISTORY_tag {
540  NMHDR hdr;
542  BOOL bCanBack;
546 
551 typedef struct MC_NMHTTPERRORW_tag {
553  NMHDR hdr;
555  LPCWSTR pszUrl;
557  int iStatus;
559 
564 typedef struct MC_NMHTTPERRORA_tag {
566  NMHDR hdr;
568  LPCSTR pszUrl;
570  int iStatus;
572 
580 
588 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
589 
597 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
598 
609 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
610 
621 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
622 
633 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
634 
648 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
649 
664 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
665 
675 #define MC_HN_HTTPERROR (MC_HN_FIRST + 7)
676 
688 #define MC_HN_BEFORENAVIGATE (MC_HN_FIRST + 8)
689 
697 
699 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
700 
701 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
702 
703 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
704 
705 #define MC_HM_CALLSCRIPTFUNC MCTRL_NAME_AW(MC_HM_CALLSCRIPTFUNC)
706 
707 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
708 
709 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
710 
711 #define MC_NMHTTPERROR MCTRL_NAME_AW(MC_NMHTTPERROR)
712 
713 #define MC_HMCALLSCRIPTFUNC MCTRL_NAME_AW(MC_HMCALLSCRIPTFUNC)
714 
719 #ifdef __cplusplus
720 } /* extern "C" */
721 #endif
722 
723 #endif /* MCTRL_HTML_H */
int iStatus
Definition: html.h:570
#define MCTRL_API
Definition: _defs.h:46
Structure used for notification about download progress.
Definition: html.h:503
NMHDR hdr
Definition: html.h:540
UINT cArgs
Definition: html.h:291
UINT cbSize
Definition: html.h:320
LPCWSTR pszText
Definition: html.h:520
BOOL mcHtml_Initialize(void)
Structure for message MC_HM_CALLSCRIPTFUNCA request (ANSI variant).
Definition: html.h:318
Structure for message MC_HM_CALLSCRIPTFUNCW request (Unicode variant).
Definition: html.h:280
NMHDR hdr
Definition: html.h:518
Structure used for notification about history navigation.
Definition: html.h:538
LONG lProgressMax
Definition: html.h:509
void mcHtml_Terminate(void)
BOOL bCanForward
Definition: html.h:544
int iRet
Definition: html.h:289
BOOL bCanBack
Definition: html.h:542
LPCWSTR pszArg3
Definition: html.h:303
int iArg2
Definition: html.h:301
int iArg3
Definition: html.h:306
LPCSTR pszRet
Definition: html.h:324
LPCSTR pszArg4
Definition: html.h:346
LPCSTR pszArg1
Definition: html.h:331
int iRet
Definition: html.h:327
LPCSTR pszUrl
Definition: html.h:568
int iArg4
Definition: html.h:349
VARIANT * lpRet
Definition: html.h:371
NMHDR hdr
Definition: html.h:566
UINT cArgs
Definition: html.h:329
LPCWSTR pszArg2
Definition: html.h:298
UINT cbSize
Definition: html.h:358
int iArg4
Definition: html.h:311
Structure used for notifications with textual parameter (ANSI variant).
Definition: html.h:527
Structure used for notifications with textual parameter (Unicode variant).
Definition: html.h:516
NMHDR hdr
Definition: html.h:553
LPCSTR pszArg3
Definition: html.h:341
LPCWSTR pszUrl
Definition: html.h:555
int iArg3
Definition: html.h:344
NMHDR hdr
Definition: html.h:505
int iArg1
Definition: html.h:296
Structure used for notifications with URL parameter (ANSI variant).
Definition: html.h:492
int iArg1
Definition: html.h:334
Structure used for notifications with URL parameter (Unicode variant).
Definition: html.h:481
UINT cbSize
Definition: html.h:282
LPCSTR pszArg2
Definition: html.h:336
LPWSTR pszRet
Definition: html.h:286
LPCWSTR pszUrl
Definition: html.h:485
int iArg2
Definition: html.h:339
NMHDR hdr
Definition: html.h:494
VARIANT * lpvArgs
Definition: html.h:362
LPCWSTR pszArg4
Definition: html.h:308
const LPCOLESTR pszFuncName
Definition: html.h:360
NMHDR hdr
Definition: html.h:529
Structure used for notification about HTTP error (ANSI variant).
Definition: html.h:564
Structure used for notification about HTTP error (Unicode variant).
Definition: html.h:551
int iStatus
Definition: html.h:557
LPCSTR pszUrl
Definition: html.h:496
UINT cArgs
Definition: html.h:364
Structure for message MC_HM_CALLSCRIPTFUNCEX.
Definition: html.h:356
LONG lProgress
Definition: html.h:507
NMHDR hdr
Definition: html.h:483
Common definitions.
Common constants and types.
LPCSTR pszText
Definition: html.h:531
LPCWSTR pszArg1
Definition: html.h:293