tunicodewrap.h - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tunicodewrap.h (3355B)
---
1 /************************************************************************
2 * unicodewrap.h Unicode wrapper functions for Win32 *
3 * Copyright (C) 2002-2004 Ben Webb *
4 * Email: benwebb@users.sf.net *
5 * WWW: https://dopewars.sourceforge.io/ *
6 * *
7 * This program is free software; you can redistribute it and/or *
8 * modify it under the terms of the GNU General Public License *
9 * as published by the Free Software Foundation; either version 2 *
10 * of the License, or (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the Free Software *
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
20 * MA 02111-1307, USA. *
21 ************************************************************************/
22
23 #ifndef __UNICODEWRAP_H__
24 #define __UNICODEWRAP_H__
25
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29
30 #ifdef CYGWIN
31 #include <winsock2.h>
32 #include <windows.h>
33 #include <commctrl.h>
34
35 BOOL mySetWindowText(HWND hWnd, LPCTSTR lpString);
36 HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle,
37 int x, int y, int nWidth, int nHeight, HWND hwndParent,
38 HMENU hMenu, HANDLE hInstance, LPVOID lpParam);
39 HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName,
40 LPCTSTR lpWindowName, DWORD dwStyle, int x, int y,
41 int nWidth, int nHeight, HWND hwndParent, HMENU hMenu,
42 HANDLE hInstance, LPVOID lpParam);
43 gchar *myGetWindowText(HWND hWnd);
44 int myDrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect,
45 UINT uFormat);
46 BOOL WINAPI mySetMenuItemInfo(HMENU hMenu, UINT uItem, BOOL fByPosition,
47 LPMENUITEMINFO lpmii);
48 BOOL WINAPI myInsertMenuItem(HMENU hMenu, UINT uItem, BOOL fByPosition,
49 LPMENUITEMINFO lpmii);
50 int myHeader_InsertItem(HWND hWnd, int index, const HD_ITEM *phdi);
51 int myTabCtrl_InsertItem(HWND hWnd, int index, const TC_ITEM *pitem);
52 ATOM myRegisterClass(CONST WNDCLASS *lpWndClass);
53 HWND myCreateDialog(HINSTANCE hInstance, LPCTSTR lpTemplate, HWND hWndParent,
54 DLGPROC lpDialogFunc);
55 void myEditReplaceSel(HWND hWnd, BOOL fCanUndo, LPCSTR lParam);
56 int myMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType);
57 size_t myw32strlen(const char *str);
58 LRESULT myComboBox_AddString(HWND hWnd, LPCTSTR text);
59 gchar *w32tostr(const gunichar2 *instr, int len);
60 gunichar2 *strtow32(const char *instr, int len);
61
62 #endif /* CYGWIN */
63
64 #endif /* __UNICODEWRAP_H__ */