mCtrl  0.9.7
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 
178 
183 BOOL MCTRL_API mcHtml_Initialize(void);
184 
188 void MCTRL_API mcHtml_Terminate(void);
189 
197 
199 #define MC_WC_HTMLW L"mCtrl.html"
200 
201 #define MC_WC_HTMLA "mCtrl.html"
202 
210 
212 #define MC_HS_NOCONTEXTMENU 0x0001
213 
221 
226 typedef struct MC_HMCALLSCRIPTFUNCW_tag {
228  UINT cbSize;
232  LPWSTR pszRet;
235  int iRet;
237  UINT cArgs;
239  LPCWSTR pszArg1;
242  int iArg1;
244  LPCWSTR pszArg2;
247  int iArg2;
249  LPCWSTR pszArg3;
252  int iArg3;
254  LPCWSTR pszArg4;
257  int iArg4;
259 
264 typedef struct MC_HMCALLSCRIPTFUNCA_tag {
266  UINT cbSize;
270  LPCSTR pszRet;
273  int iRet;
275  UINT cArgs;
277  LPCSTR pszArg1;
280  int iArg1;
282  LPCSTR pszArg2;
285  int iArg2;
287  LPCSTR pszArg3;
290  int iArg3;
292  LPCSTR pszArg4;
295  int iArg4;
297 
302 typedef struct MC_HMCALLSCRIPTFUNCEX_tag {
304  UINT cbSize;
306  const LPCOLESTR pszFuncName;
308  VARIANT* lpvArgs;
310  UINT cArgs;
318  VARIANT* lpRet;
320 
328 
335 #define MC_HM_GOTOURLW (MC_HM_FIRST + 10)
336 
343 #define MC_HM_GOTOURLA (MC_HM_FIRST + 11)
344 
352 #define MC_HM_SETTAGCONTENTSW (MC_HM_FIRST + 12)
353 
361 #define MC_HM_SETTAGCONTENTSA (MC_HM_FIRST + 13)
362 
371 #define MC_HM_GOBACK (MC_HM_FIRST + 14)
372 
381 #define MC_HM_CANBACK (MC_HM_FIRST + 15)
382 
392 #define MC_HM_CALLSCRIPTFUNCW (MC_HM_FIRST + 16)
393 
403 #define MC_HM_CALLSCRIPTFUNCA (MC_HM_FIRST + 17)
404 
414 #define MC_HM_CALLSCRIPTFUNCEX (MC_HM_FIRST + 18)
415 
423 
428 typedef struct MC_NMHTMLURLW_tag {
430  NMHDR hdr;
432  LPCWSTR pszUrl;
433 } MC_NMHTMLURLW;
434 
439 typedef struct MC_NMHTMLURLA_tag {
441  NMHDR hdr;
443  LPCSTR pszUrl;
444 } MC_NMHTMLURLA;
445 
450 typedef struct MC_NMHTMLPROGRESS_tag {
452  NMHDR hdr;
454  LONG lProgress;
458 
463 typedef struct MC_NMHTMLTEXTW_tag {
465  NMHDR hdr;
467  LPCWSTR pszText;
469 
474 typedef struct MC_NMHTMLTEXTA_tag {
476  NMHDR hdr;
478  LPCSTR pszText;
480 
485 typedef struct MC_NMHTMLHISTORY_tag {
487  NMHDR hdr;
489  BOOL bCanBack;
493 
498 typedef struct MC_NMHTTPERRORW_tag {
500  NMHDR hdr;
502  LPCWSTR pszUrl;
504  int iStatus;
506 
511 typedef struct MC_NMHTTPERRORA_tag {
513  NMHDR hdr;
515  LPCSTR pszUrl;
517  int iStatus;
519 
527 
535 #define MC_HN_APPLINK (MC_HN_FIRST + 0)
536 
544 #define MC_HN_DOCUMENTCOMPLETE (MC_HN_FIRST + 1)
545 
556 #define MC_HN_PROGRESS (MC_HN_FIRST + 2)
557 
568 #define MC_HN_STATUSTEXT (MC_HN_FIRST + 3)
569 
580 #define MC_HN_TITLETEXT (MC_HN_FIRST + 4)
581 
595 #define MC_HN_HISTORY (MC_HN_FIRST + 5)
596 
611 #define MC_HN_NEWWINDOW (MC_HN_FIRST + 6)
612 
622 #define MC_HN_HTTPERROR (MC_HN_FIRST + 7)
623 
631 
633 #define MC_WC_HTML MCTRL_NAME_AW(MC_WC_HTML)
634 
635 #define MC_HM_GOTOURL MCTRL_NAME_AW(MC_HM_GOTOURL)
636 
637 #define MC_HM_SETTAGCONTENTS MCTRL_NAME_AW(MC_HM_SETTAGCONTENTS)
638 
639 #define MC_HM_CALLSCRIPTFUNC MCTRL_NAME_AW(MC_HM_CALLSCRIPTFUNC)
640 
641 #define MC_NMHTMLURL MCTRL_NAME_AW(MC_NMHTMLURL)
642 
643 #define MC_NMHTMLTEXT MCTRL_NAME_AW(MC_NMHTMLTEXT)
644 
645 #define MC_NMHTTPERROR MCTRL_NAME_AW(MC_NMHTTPERROR)
646 
647 #define MC_HMCALLSCRIPTFUNC MCTRL_NAME_AW(MC_HMCALLSCRIPTFUNC)
648 
653 #ifdef __cplusplus
654 } /* extern "C" */
655 #endif
656 
657 #endif /* MCTRL_HTML_H */
int iStatus
Definition: html.h:517
#define MCTRL_API
Definition: _defs.h:46
Structure used for notification about download progress.
Definition: html.h:450
NMHDR hdr
Definition: html.h:487
UINT cArgs
Definition: html.h:237
UINT cbSize
Definition: html.h:266
LPCWSTR pszText
Definition: html.h:467
BOOL mcHtml_Initialize(void)
NMHDR hdr
Definition: html.h:465
LONG lProgressMax
Definition: html.h:456
Structure for message MC_HM_CALLSCRIPTFUNCEX.
Definition: html.h:302
void mcHtml_Terminate(void)
BOOL bCanForward
Definition: html.h:491
int iRet
Definition: html.h:235
BOOL bCanBack
Definition: html.h:489
LPCWSTR pszArg3
Definition: html.h:249
int iArg2
Definition: html.h:247
int iArg3
Definition: html.h:252
LPCSTR pszRet
Definition: html.h:270
LPCSTR pszArg4
Definition: html.h:292
LPCSTR pszArg1
Definition: html.h:277
int iRet
Definition: html.h:273
LPCSTR pszUrl
Definition: html.h:515
int iArg4
Definition: html.h:295
VARIANT * lpRet
Definition: html.h:318
NMHDR hdr
Definition: html.h:513
Structure used for notifications with URL parameter (ANSI variant).
Definition: html.h:439
Structure used for notifications with URL parameter (Unicode variant).
Definition: html.h:428
UINT cArgs
Definition: html.h:275
LPCWSTR pszArg2
Definition: html.h:244
UINT cbSize
Definition: html.h:304
Structure used for notification about history navigation.
Definition: html.h:485
int iArg4
Definition: html.h:257
NMHDR hdr
Definition: html.h:500
LPCSTR pszArg3
Definition: html.h:287
LPCWSTR pszUrl
Definition: html.h:502
int iArg3
Definition: html.h:290
NMHDR hdr
Definition: html.h:452
int iArg1
Definition: html.h:242
int iArg1
Definition: html.h:280
UINT cbSize
Definition: html.h:228
LPCSTR pszArg2
Definition: html.h:282
LPWSTR pszRet
Definition: html.h:232
LPCWSTR pszUrl
Definition: html.h:432
int iArg2
Definition: html.h:285
NMHDR hdr
Definition: html.h:441
VARIANT * lpvArgs
Definition: html.h:308
Structure used for notifications with textual parameter (ANSI variant).
Definition: html.h:474
Structure used for notifications with textual parameter (Unicode variant).
Definition: html.h:463
LPCWSTR pszArg4
Definition: html.h:254
Structure for message MC_HM_CALLSCRIPTFUNCA request (ANSI variant).
Definition: html.h:264
const LPCOLESTR pszFuncName
Definition: html.h:306
Structure for message MC_HM_CALLSCRIPTFUNCW request (Unicode variant).
Definition: html.h:226
NMHDR hdr
Definition: html.h:476
int iStatus
Definition: html.h:504
LPCSTR pszUrl
Definition: html.h:443
UINT cArgs
Definition: html.h:310
Structure used for notification about HTTP error (ANSI variant).
Definition: html.h:511
Structure used for notification about HTTP error (Unicode variant).
Definition: html.h:498
LONG lProgress
Definition: html.h:454
NMHDR hdr
Definition: html.h:430
Common definitions.
Common constants and types.
LPCSTR pszText
Definition: html.h:478
LPCWSTR pszArg1
Definition: html.h:239