mCtrl 0.8.0
|
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 #ifdef UNICODE 00164 00165 #define MC_WC_HTML MC_WC_HTMLW 00166 #else 00167 #define MC_WC_HTML MC_WC_HTMLA 00168 #endif 00169 00177 #define MC_HS_NOCONTEXTMENU (0x00000001L) 00178 00185 00192 #define MC_HM_GOTOURLW (WM_USER + 10) 00193 00200 #define MC_HM_GOTOURLA (WM_USER + 11) 00201 00202 00203 #ifdef UNICODE 00204 00205 #define MC_HM_GOTOURL MC_HM_GOTOURLW 00206 #else 00207 #define MC_HM_GOTOURL MC_HM_GOTOURLA 00208 #endif 00209 00210 00218 #define MC_HM_SETTAGCONTENTSW (WM_USER + 12) 00219 00227 #define MC_HM_SETTAGCONTENTSA (WM_USER + 13) 00228 00229 #ifdef UNICODE 00230 00231 #define MC_HM_SETTAGCONTENTS MC_HM_SETTAGCONTENTSW 00232 #else 00233 #define MC_HM_SETTAGCONTENTS MC_HM_SETTAGCONTENTSA 00234 #endif 00235 00243 typedef struct MC_NMHTMLURLW_tag { 00245 NMHDR hdr; 00247 LPCWSTR pszUrl; 00248 } MC_NMHTMLURLW; 00249 00254 typedef struct MC_NMHTMLURLA_tag { 00256 NMHDR hdr; 00258 LPCSTR pszUrl; 00259 } MC_NMHTMLURLA; 00260 00261 00262 #ifdef UNICODE 00263 00264 #define MC_NMHTMLURL MC_NMHTMLURLW 00265 #else 00266 #define MC_NMHTMLURL MC_NMHTMLURLA 00267 #endif 00268 00269 00270 00275 00283 #define MC_HN_APPLINK ((0U-2000U) + 0x0001) 00284 00292 #define MC_HN_DOCUMENTCOMPLETE ((0U-2000U) + 0x0002) 00293 00298 #ifdef __cplusplus 00299 } /* extern "C" */ 00300 #endif 00301 00302 #endif /* MCTRL_HTML_H */