2 * Copyright (c) 2005 Massachusetts Institute of Technology
\r
4 * Permission is hereby granted, free of charge, to any person
\r
5 * obtaining a copy of this software and associated documentation
\r
6 * files (the "Software"), to deal in the Software without
\r
7 * restriction, including without limitation the rights to use, copy,
\r
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
\r
9 * of the Software, and to permit persons to whom the Software is
\r
10 * furnished to do so, subject to the following conditions:
\r
12 * The above copyright notice and this permission notice shall be
\r
13 * included in all copies or substantial portions of the Software.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
\r
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
\r
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\r
27 #ifndef __KHIMAIRA_HTWND_H
\r
28 #define __KHIMAIRA_HTWND_H
\r
30 #include<khuidefs.h>
\r
33 We currently support the following tags:
\r
35 <a [id="string"] [param="paramstring"]>link text</a>
\r
36 <center>foo</center>
\r
41 #define KHUI_HTWND_TRANSPARENT 1
\r
42 #define KHUI_HTWND_CLIENTEDGE 2
\r
43 #define KHUI_HTWND_FOCUS 2048
\r
45 #define KHUI_HTWND_CLASS L"KhmHtWnd"
\r
46 #define KHUI_HTWND_CTLID 2040
\r
48 #define KHUI_HTWND_MAXCCH_TEXT 2048
\r
49 #define KHUI_HTWND_MAXCB_TEXT (sizeof(wchar_t) * KHUI_HTWND_MAXCCH_TEXT)
\r
51 HWND khm_create_htwnd(HWND parent, LPWSTR text, int x, int y, int width, int height, DWORD ex_style, DWORD style);
\r
52 void khm_unregister_htwnd_class(void);
\r
53 void khm_register_htwnd_class(void);
\r