mCtrl 0.8.2

mCtrl/html.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2011 Martin Mitas
00003  *
00004  * This library is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published by
00006  * the Free Software Foundation; either version 2.1 of the License, or
00007  * (at your option) any later version.
00008  * 
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU Lesser General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017  */
00018 
00019 #ifndef MCTRL_HTML_H
00020 #define MCTRL_HTML_H
00021 
00022 #include <mCtrl/defs.h>
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00145 BOOL MCTRL_API mcHtml_Initialize(void);
00146 
00152 void MCTRL_API mcHtml_Terminate(void);
00153 
00154 
00160 #define MC_WC_HTMLW            L"mCtrl.html"
00161 
00162 #define MC_WC_HTMLA             "mCtrl.html"
00163 
00171 #define MC_HS_NOCONTEXTMENU   (0x00000001L)
00172 
00179 
00186 #define MC_HM_GOTOURLW        (WM_USER + 10)
00187 
00194 #define MC_HM_GOTOURLA        (WM_USER + 11)
00195 
00203 #define MC_HM_SETTAGCONTENTSW (WM_USER + 12)
00204 
00212 #define MC_HM_SETTAGCONTENTSA (WM_USER + 13)
00213 
00221 typedef struct MC_NMHTMLURLW_tag {
00223     NMHDR hdr;
00225     LPCWSTR pszUrl;
00226 } MC_NMHTMLURLW;
00227 
00232 typedef struct MC_NMHTMLURLA_tag {
00234     NMHDR hdr;
00236     LPCSTR pszUrl;
00237 } MC_NMHTMLURLA;
00238 
00239 
00244 
00252 #define MC_HN_APPLINK            ((0U-2000U) + 0x0001)
00253 
00261 #define MC_HN_DOCUMENTCOMPLETE   ((0U-2000U) + 0x0002)
00262 
00270 
00271 #ifdef UNICODE
00272 
00273     #define MC_WC_HTML             MC_WC_HTMLW
00274 
00275     #define MC_HM_GOTOURL          MC_HM_GOTOURLW
00276 
00277     #define MC_HM_SETTAGCONTENTS   MC_HM_SETTAGCONTENTSW
00278 
00279     #define MC_NMHTMLURL           MC_NMHTMLURLW
00280 #else
00281     #define MC_WC_HTML             MC_WC_HTMLA
00282     #define MC_HM_GOTOURL          MC_HM_GOTOURLA
00283     #define MC_HM_SETTAGCONTENTS   MC_HM_SETTAGCONTENTSA
00284     #define MC_NMHTMLURL           MC_NMHTMLURLA
00285 #endif
00286 
00291 #ifdef __cplusplus
00292 }  /* extern "C" */
00293 #endif
00294 
00295 #endif  /* MCTRL_HTML_H */