mCtrl  0.11.2
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 
235 
240 BOOL MCTRL_API mcHtml_Initialize(void);
241 
245 void MCTRL_API mcHtml_Terminate(void);
246 
254 
256 #define MC_WC_HTMLW L"mCtrl.html"
257 
258 #define MC_WC_HTMLA "mCtrl.html"
259 
267 
269 #define MC_HS_NOCONTEXTMENU 0x0001
270 
278 
283 typedef struct MC_HMCALLSCRIPTFUNCW_tag {
285  UINT cbSize;
289  LPWSTR pszRet;
292  int iRet;
294  UINT cArgs;
296  LPCWSTR pszArg1;
299  int iArg1;
301  LPCWSTR pszArg2;
304  int iArg2;
306  LPCWSTR pszArg3;
309  int iArg3;
311  LPCWSTR pszArg4;
314  int iArg4;
316 
321 typedef struct MC_HMCALLSCRIPTFUNCA_tag {
323  UINT cbSize;
327  LPCSTR pszRet;
330  int iRet;
332  UINT cArgs;
334  LPCSTR pszArg1;
337  int iArg1;
339  LPCSTR pszArg2;
342  int iArg2;
344  LPCSTR pszArg3;
347  int iArg3;
349  LPCSTR pszArg4;
352  int iArg4;
354 
359 typedef struct MC_HMCALLSCRIPTFUNCEX_tag {
361  UINT cbSize;
363  const LPCOLESTR pszFuncName;
365  VARIANT* lpvArgs;
367  UINT cArgs;
374  VARIANT* lpRet;
376 
384 
391 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
392 
399 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
400 
408 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
409 
417 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
418 
427 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
428 
437 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
438 
455 #define MC_HM_CALLSCRIPTFUNCW (MC_HM_FIRST + 16)
456 
473 #define MC_HM_CALLSCRIPTFUNCA (MC_HM_FIRST + 17)
474 
484 #define MC_HM_CALLSCRIPTFUNCEX (MC_HM_FIRST + 18)
485 
493 
498 typedef struct MC_NMHTMLURLW_tag {
500  NMHDR hdr;
502  LPCWSTR pszUrl;
503 } MC_NMHTMLURLW;
504 
509 typedef struct MC_NMHTMLURLA_tag {
511  NMHDR hdr;
513  LPCSTR pszUrl;
514 } MC_NMHTMLURLA;
515 
520 typedef struct MC_NMHTMLPROGRESS_tag {
522  NMHDR hdr;
524  LONG lProgress;
528 
533 typedef struct MC_NMHTMLTEXTW_tag {
535  NMHDR hdr;
537  LPCWSTR pszText;
539 
544 typedef struct MC_NMHTMLTEXTA_tag {
546  NMHDR hdr;
548  LPCSTR pszText;
550 
555 typedef struct MC_NMHTMLHISTORY_tag {
557  NMHDR hdr;
559  BOOL bCanBack;
563 
568 typedef struct MC_NMHTTPERRORW_tag {
570  NMHDR hdr;
572  LPCWSTR pszUrl;
574  int iStatus;
576 
581 typedef struct MC_NMHTTPERRORA_tag {
583  NMHDR hdr;
585  LPCSTR pszUrl;
587  int iStatus;
589 
597 
605 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
606 
614 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
615 
626 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
627 
638 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
639 
650 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
651 
665 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
666 
681 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
682 
692 #define MC_HN_HTTPERROR (MC_HN_FIRST + 7)
693 
705 #define MC_HN_BEFORENAVIGATE (MC_HN_FIRST + 8)
706 
714 
716 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
717 
718 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
719 
720 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
721 
722 #define MC_HM_CALLSCRIPTFUNC MCTRL_NAME_AW(MC_HM_CALLSCRIPTFUNC)
723 
724 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
725 
726 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
727 
728 #define MC_NMHTTPERROR MCTRL_NAME_AW(MC_NMHTTPERROR)
729 
730 #define MC_HMCALLSCRIPTFUNC MCTRL_NAME_AW(MC_HMCALLSCRIPTFUNC)
731 
736 #ifdef __cplusplus
737 } /* extern "C" */
738 #endif
739 
740 #endif /* MCTRL_HTML_H */
int iStatus
Definition: html.h:587
#define MCTRL_API
Definition: _defs.h:46
Structure used for notification about download progress.
Definition: html.h:520
NMHDR hdr
Definition: html.h:557
UINT cArgs
Definition: html.h:294
UINT cbSize
Definition: html.h:323
LPCWSTR pszText
Definition: html.h:537
BOOL mcHtml_Initialize(void)
Structure for message MC_HM_CALLSCRIPTFUNCA request (ANSI variant).
Definition: html.h:321
Structure for message MC_HM_CALLSCRIPTFUNCW request (Unicode variant).
Definition: html.h:283
NMHDR hdr
Definition: html.h:535
Structure used for notification about history navigation.
Definition: html.h:555
LONG lProgressMax
Definition: html.h:526
void mcHtml_Terminate(void)
BOOL bCanForward
Definition: html.h:561
int iRet
Definition: html.h:292
BOOL bCanBack
Definition: html.h:559
LPCWSTR pszArg3
Definition: html.h:306
int iArg2
Definition: html.h:304
int iArg3
Definition: html.h:309
LPCSTR pszRet
Definition: html.h:327
LPCSTR pszArg4
Definition: html.h:349
LPCSTR pszArg1
Definition: html.h:334
int iRet
Definition: html.h:330
LPCSTR pszUrl
Definition: html.h:585
int iArg4
Definition: html.h:352
VARIANT * lpRet
Definition: html.h:374
NMHDR hdr
Definition: html.h:583
UINT cArgs
Definition: html.h:332
LPCWSTR pszArg2
Definition: html.h:301
UINT cbSize
Definition: html.h:361
int iArg4
Definition: html.h:314
Structure used for notifications with textual parameter (ANSI variant).
Definition: html.h:544
Structure used for notifications with textual parameter (Unicode variant).
Definition: html.h:533
NMHDR hdr
Definition: html.h:570
LPCSTR pszArg3
Definition: html.h:344
LPCWSTR pszUrl
Definition: html.h:572
int iArg3
Definition: html.h:347
NMHDR hdr
Definition: html.h:522
int iArg1
Definition: html.h:299
Structure used for notifications with URL parameter (ANSI variant).
Definition: html.h:509
int iArg1
Definition: html.h:337
Structure used for notifications with URL parameter (Unicode variant).
Definition: html.h:498
UINT cbSize
Definition: html.h:285
LPCSTR pszArg2
Definition: html.h:339
LPWSTR pszRet
Definition: html.h:289
LPCWSTR pszUrl
Definition: html.h:502
int iArg2
Definition: html.h:342
NMHDR hdr
Definition: html.h:511
VARIANT * lpvArgs
Definition: html.h:365
LPCWSTR pszArg4
Definition: html.h:311
const LPCOLESTR pszFuncName
Definition: html.h:363
NMHDR hdr
Definition: html.h:546
Structure used for notification about HTTP error (ANSI variant).
Definition: html.h:581
Structure used for notification about HTTP error (Unicode variant).
Definition: html.h:568
int iStatus
Definition: html.h:574
LPCSTR pszUrl
Definition: html.h:513
UINT cArgs
Definition: html.h:367
Structure for message MC_HM_CALLSCRIPTFUNCEX.
Definition: html.h:359
LONG lProgress
Definition: html.h:524
NMHDR hdr
Definition: html.h:500
Common definitions.
Common constants and types.
LPCSTR pszText
Definition: html.h:548
LPCWSTR pszArg1
Definition: html.h:296