Reformat .h files.
I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
*
|
||||
****/
|
||||
|
||||
#undef assert
|
||||
#undef assert
|
||||
|
||||
#ifdef NDEBUG
|
||||
#ifdef NDEBUG
|
||||
|
||||
#define assert(exp) ((void)0)
|
||||
#define assert(exp) ((void) 0)
|
||||
|
||||
#else
|
||||
|
||||
#define assert(exp) (void)( (exp) || (panic("%s at %s line %ld", #exp, __FILE__,__LINE__), 1) )
|
||||
#define assert(exp) \
|
||||
(void)((exp) || (panic("%s at %s line %ld", #exp, __FILE__, __LINE__), 1))
|
||||
|
||||
#endif /* NDEBUG */
|
||||
#endif /* NDEBUG */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* empty file */
|
||||
|
||||
extern int errno;
|
||||
|
||||
|
||||
@@ -13,55 +13,55 @@
|
||||
#ifndef _INC_FCNTL
|
||||
#define _INC_FCNTL
|
||||
|
||||
#define _O_RDONLY 0x0000 /* open for reading only */
|
||||
#define _O_WRONLY 0x0001 /* open for writing only */
|
||||
#define _O_RDWR 0x0002 /* open for reading and writing */
|
||||
#define _O_APPEND 0x0008 /* writes done at eof */
|
||||
#define _O_RDONLY 0x0000 /* open for reading only */
|
||||
#define _O_WRONLY 0x0001 /* open for writing only */
|
||||
#define _O_RDWR 0x0002 /* open for reading and writing */
|
||||
#define _O_APPEND 0x0008 /* writes done at eof */
|
||||
|
||||
#define _O_CREAT 0x0100 /* create and open file */
|
||||
#define _O_TRUNC 0x0200 /* open and truncate */
|
||||
#define _O_EXCL 0x0400 /* open only if file doesn't already exist */
|
||||
#define _O_CREAT 0x0100 /* create and open file */
|
||||
#define _O_TRUNC 0x0200 /* open and truncate */
|
||||
#define _O_EXCL 0x0400 /* open only if file doesn't already exist */
|
||||
|
||||
/* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s,
|
||||
** and <lf> sequences translated to <cr><lf> on write()'s
|
||||
*/
|
||||
|
||||
#define _O_TEXT 0x4000 /* file mode is text (translated) */
|
||||
#define _O_BINARY 0x8000 /* file mode is binary (untranslated) */
|
||||
#define _O_TEXT 0x4000 /* file mode is text (translated) */
|
||||
#define _O_BINARY 0x8000 /* file mode is binary (untranslated) */
|
||||
|
||||
/* macro to translate the C 2.0 name used to force binary mode for files */
|
||||
|
||||
#define _O_RAW _O_BINARY
|
||||
#define _O_RAW _O_BINARY
|
||||
|
||||
/* Open handle inherit bit */
|
||||
|
||||
#define _O_NOINHERIT 0x0080 /* child process doesn't inherit file */
|
||||
#define _O_NOINHERIT 0x0080 /* child process doesn't inherit file */
|
||||
|
||||
/* Temporary file bit - file is deleted when last handle is closed */
|
||||
|
||||
#define _O_TEMPORARY 0x0040 /* temporary file bit */
|
||||
#define _O_TEMPORARY 0x0040 /* temporary file bit */
|
||||
|
||||
/* sequential/random access hints */
|
||||
|
||||
#define _O_SEQUENTIAL 0x0020 /* file access is primarily sequential */
|
||||
#define _O_RANDOM 0x0010 /* file access is primarily random */
|
||||
#define _O_SEQUENTIAL 0x0020 /* file access is primarily sequential */
|
||||
#define _O_RANDOM 0x0010 /* file access is primarily random */
|
||||
|
||||
#if !__STDC__ || defined(_POSIX_)
|
||||
#if !__STDC__ || defined(_POSIX_)
|
||||
/* Non-ANSI names for compatibility */
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#define O_WRONLY _O_WRONLY
|
||||
#define O_RDWR _O_RDWR
|
||||
#define O_APPEND _O_APPEND
|
||||
#define O_CREAT _O_CREAT
|
||||
#define O_TRUNC _O_TRUNC
|
||||
#define O_EXCL _O_EXCL
|
||||
#define O_TEXT _O_TEXT
|
||||
#define O_BINARY _O_BINARY
|
||||
#define O_RAW _O_BINARY
|
||||
#define O_TEMPORARY _O_TEMPORARY
|
||||
#define O_NOINHERIT _O_NOINHERIT
|
||||
#define O_SEQUENTIAL _O_SEQUENTIAL
|
||||
#define O_RANDOM _O_RANDOM
|
||||
#endif /* __STDC__ */
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#define O_WRONLY _O_WRONLY
|
||||
#define O_RDWR _O_RDWR
|
||||
#define O_APPEND _O_APPEND
|
||||
#define O_CREAT _O_CREAT
|
||||
#define O_TRUNC _O_TRUNC
|
||||
#define O_EXCL _O_EXCL
|
||||
#define O_TEXT _O_TEXT
|
||||
#define O_BINARY _O_BINARY
|
||||
#define O_RAW _O_BINARY
|
||||
#define O_TEMPORARY _O_TEMPORARY
|
||||
#define O_NOINHERIT _O_NOINHERIT
|
||||
#define O_SEQUENTIAL _O_SEQUENTIAL
|
||||
#define O_RANDOM _O_RANDOM
|
||||
#endif /* __STDC__ */
|
||||
|
||||
#endif /* _INC_FCNTL */
|
||||
#endif /* _INC_FCNTL */
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
/* empty file */
|
||||
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
|
||||
#include "winMS.h"
|
||||
|
||||
int mswin_yes_no_dialog( const char *question, const char *choices, int def);
|
||||
int mswin_yes_no_dialog(const char *question, const char *choices, int def);
|
||||
|
||||
#endif /* MSWINAskYesNO_h */
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
HWND mswin_init_command_window ();
|
||||
HWND mswin_init_command_window();
|
||||
|
||||
/* if either sz->cx or sz->cy are already set this function will
|
||||
no modify it. It will adjust them to the minimum size
|
||||
/* if either sz->cx or sz->cy are already set this function will
|
||||
no modify it. It will adjust them to the minimum size
|
||||
required by the command window */
|
||||
void mswin_command_window_size (HWND hwnd, LPSIZE sz);
|
||||
void mswin_command_window_size(HWND hwnd, LPSIZE sz);
|
||||
|
||||
#if defined(WIN_CE_SMARTPHONE)
|
||||
/* special keypad input handling for SmartPhone */
|
||||
BOOL NHSPhoneTranslateKbdMessage(WPARAM wParam, LPARAM lParam, BOOL keyDown);
|
||||
void NHSPhoneSetKeypadFromString(const char* str);
|
||||
void NHSPhoneSetKeypadDirection();
|
||||
void NHSPhoneSetKeypadDefault();
|
||||
BOOL NHSPhoneTranslateKbdMessage(WPARAM wParam, LPARAM lParam, BOOL keyDown);
|
||||
void NHSPhoneSetKeypadFromString(const char *str);
|
||||
void NHSPhoneSetKeypadDirection();
|
||||
void NHSPhoneSetKeypadDefault();
|
||||
#endif
|
||||
|
||||
#endif /* MSWINCMDWindow_h */
|
||||
|
||||
@@ -11,8 +11,9 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
int mswin_getlin_window (const char *question, char *result, size_t result_size);
|
||||
int mswin_ext_cmd_window (int* selection);
|
||||
int mswin_player_selection_window(int* selection);
|
||||
int mswin_getlin_window(const char *question, char *result,
|
||||
size_t result_size);
|
||||
int mswin_ext_cmd_window(int *selection);
|
||||
int mswin_player_selection_window(int *selection);
|
||||
|
||||
#endif /* MSWINDlgWindow_h */
|
||||
|
||||
@@ -10,30 +10,43 @@
|
||||
/* nethack input queue - store/extract input events */
|
||||
#include "winMS.h"
|
||||
|
||||
#define NHEVENT_CHAR 1
|
||||
#define NHEVENT_MOUSE 2
|
||||
#define NHEVENT_CHAR 1
|
||||
#define NHEVENT_MOUSE 2
|
||||
typedef struct mswin_event {
|
||||
int type;
|
||||
union {
|
||||
struct {
|
||||
int ch;
|
||||
} kbd;
|
||||
int type;
|
||||
union {
|
||||
struct {
|
||||
int ch;
|
||||
} kbd;
|
||||
|
||||
struct {
|
||||
int mod;
|
||||
int x, y;
|
||||
} ms;
|
||||
};
|
||||
struct {
|
||||
int mod;
|
||||
int x, y;
|
||||
} ms;
|
||||
};
|
||||
} MSNHEvent, *PMSNHEvent;
|
||||
|
||||
#define NHEVENT_KBD(c) { MSNHEvent e; e.type=NHEVENT_CHAR; e.kbd.ch=(c); mswin_input_push(&e); }
|
||||
#define NHEVENT_MS(_mod, _x, _y) { MSNHEvent e; e.type=NHEVENT_MOUSE; e.ms.mod = (_mod); e.ms.x=(_x); e.ms.y=(_y); mswin_input_push(&e); }
|
||||
#define NHEVENT_KBD(c) \
|
||||
{ \
|
||||
MSNHEvent e; \
|
||||
e.type = NHEVENT_CHAR; \
|
||||
e.kbd.ch = (c); \
|
||||
mswin_input_push(&e); \
|
||||
}
|
||||
#define NHEVENT_MS(_mod, _x, _y) \
|
||||
{ \
|
||||
MSNHEvent e; \
|
||||
e.type = NHEVENT_MOUSE; \
|
||||
e.ms.mod = (_mod); \
|
||||
e.ms.x = (_x); \
|
||||
e.ms.y = (_y); \
|
||||
mswin_input_push(&e); \
|
||||
}
|
||||
|
||||
void mswin_nh_input_init();
|
||||
int mswin_have_input();
|
||||
void mswin_input_push(PMSNHEvent event);
|
||||
PMSNHEvent mswin_input_pop();
|
||||
PMSNHEvent mswin_input_peek();
|
||||
void mswin_nh_input_init();
|
||||
int mswin_have_input();
|
||||
void mswin_input_push(PMSNHEvent event);
|
||||
PMSNHEvent mswin_input_pop();
|
||||
PMSNHEvent mswin_input_peek();
|
||||
|
||||
#endif /* MSWINInput_h */
|
||||
|
||||
|
||||
@@ -12,9 +12,8 @@
|
||||
#include "winMS.h"
|
||||
|
||||
extern TCHAR szMainWindowClass[];
|
||||
HWND mswin_init_main_window ();
|
||||
HWND mswin_init_main_window();
|
||||
void mswin_layout_main_window(HWND changed_child);
|
||||
void mswin_select_map_mode(int map_mode);
|
||||
|
||||
#endif /* MSWINMainWindow_h */
|
||||
|
||||
|
||||
@@ -10,15 +10,14 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
|
||||
HWND mswin_init_map_window (void);
|
||||
HWND mswin_init_map_window(void);
|
||||
void mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw);
|
||||
int mswin_map_mode(HWND hWnd, int mode);
|
||||
void mswin_map_get_cursor(HWND hWnd, int* x, int* y);
|
||||
void mswin_map_get_cursor(HWND hWnd, int *x, int *y);
|
||||
|
||||
#define ROGUE_LEVEL_MAP_MODE MAP_MODE_ASCII12x16
|
||||
#define ROGUE_LEVEL_MAP_MODE MAP_MODE_ASCII12x16
|
||||
|
||||
#define DEF_CLIPAROUND_MARGIN 5
|
||||
#define DEF_CLIPAROUND_AMOUNT 1
|
||||
#define DEF_CLIPAROUND_MARGIN 5
|
||||
#define DEF_CLIPAROUND_AMOUNT 1
|
||||
|
||||
#endif /* MSWINMapWindow_h */
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
#define MENU_TYPE_TEXT 1
|
||||
#define MENU_TYPE_MENU 2
|
||||
#define MENU_TYPE_TEXT 1
|
||||
#define MENU_TYPE_MENU 2
|
||||
|
||||
HWND mswin_init_menu_window ( int type );
|
||||
int mswin_menu_window_select_menu (HWND hwnd, int how, MENU_ITEM_P **);
|
||||
void mswin_menu_window_size (HWND hwnd, LPSIZE sz);
|
||||
HWND mswin_init_menu_window(int type);
|
||||
int mswin_menu_window_select_menu(HWND hwnd, int how, MENU_ITEM_P **);
|
||||
void mswin_menu_window_size(HWND hwnd, LPSIZE sz);
|
||||
|
||||
#endif /* MSWINTextWindow_h */
|
||||
|
||||
@@ -8,56 +8,56 @@
|
||||
#define MHNethackMessages_H
|
||||
|
||||
/* nethack messages */
|
||||
#define WM_MSNH_COMMAND (WM_APP+1)
|
||||
#define WM_MSNH_COMMAND (WM_APP + 1)
|
||||
|
||||
#define MSNH_MSG_ADDWND 100
|
||||
#define MSNH_MSG_PUTSTR 101
|
||||
#define MSNH_MSG_PRINT_GLYPH 102
|
||||
#define MSNH_MSG_CLEAR_WINDOW 103
|
||||
#define MSNH_MSG_CLIPAROUND 104
|
||||
#define MSNH_MSG_STARTMENU 105
|
||||
#define MSNH_MSG_ADDMENU 106
|
||||
#define MSNH_MSG_CURSOR 107
|
||||
#define MSNH_MSG_ENDMENU 108
|
||||
#define MSNH_MSG_ADDWND 100
|
||||
#define MSNH_MSG_PUTSTR 101
|
||||
#define MSNH_MSG_PRINT_GLYPH 102
|
||||
#define MSNH_MSG_CLEAR_WINDOW 103
|
||||
#define MSNH_MSG_CLIPAROUND 104
|
||||
#define MSNH_MSG_STARTMENU 105
|
||||
#define MSNH_MSG_ADDMENU 106
|
||||
#define MSNH_MSG_CURSOR 107
|
||||
#define MSNH_MSG_ENDMENU 108
|
||||
|
||||
typedef struct mswin_nhmsg_add_wnd {
|
||||
winid wid;
|
||||
winid wid;
|
||||
} MSNHMsgAddWnd, *PMSNHMsgAddWnd;
|
||||
|
||||
typedef struct mswin_nhmsg_putstr {
|
||||
int attr;
|
||||
const char* text;
|
||||
boolean append;
|
||||
int attr;
|
||||
const char *text;
|
||||
boolean append;
|
||||
} MSNHMsgPutstr, *PMSNHMsgPutstr;
|
||||
|
||||
typedef struct mswin_nhmsg_print_glyph {
|
||||
XCHAR_P x;
|
||||
XCHAR_P y;
|
||||
int glyph;
|
||||
XCHAR_P x;
|
||||
XCHAR_P y;
|
||||
int glyph;
|
||||
} MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph;
|
||||
|
||||
typedef struct mswin_nhmsg_cliparound {
|
||||
int x;
|
||||
int y;
|
||||
int x;
|
||||
int y;
|
||||
} MSNHMsgClipAround, *PMSNHMsgClipAround;
|
||||
|
||||
typedef struct mswin_nhmsg_add_menu {
|
||||
int glyph;
|
||||
const ANY_P* identifier;
|
||||
CHAR_P accelerator;
|
||||
CHAR_P group_accel;
|
||||
int attr;
|
||||
const char * str;
|
||||
BOOLEAN_P presel;
|
||||
int glyph;
|
||||
const ANY_P *identifier;
|
||||
CHAR_P accelerator;
|
||||
CHAR_P group_accel;
|
||||
int attr;
|
||||
const char *str;
|
||||
BOOLEAN_P presel;
|
||||
} MSNHMsgAddMenu, *PMSNHMsgAddMenu;
|
||||
|
||||
typedef struct mswin_nhmsg_cursor {
|
||||
int x;
|
||||
int y;
|
||||
int x;
|
||||
int y;
|
||||
} MSNHMsgCursor, *PMSNHMsgCursor;
|
||||
|
||||
typedef struct mswin_nhmsg_end_menu {
|
||||
const char* text;
|
||||
const char *text;
|
||||
} MSNHMsgEndMenu, *PMSNHMsgEndMenu;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
HWND mswin_init_message_window ();
|
||||
void mswin_message_window_size (HWND hWnd, LPSIZE sz);
|
||||
|
||||
HWND mswin_init_message_window();
|
||||
void mswin_message_window_size(HWND hWnd, LPSIZE sz);
|
||||
|
||||
#endif /* MSWINMessageWindow_h */
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
HWND mswin_init_RIP_window ();
|
||||
void mswin_display_RIP_window (HWND hwnd);
|
||||
HWND mswin_init_RIP_window();
|
||||
void mswin_display_RIP_window(HWND hwnd);
|
||||
|
||||
#endif /* MSWINRIPWindow_h */
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
HWND mswin_init_status_window ();
|
||||
void mswin_status_window_size (HWND hWnd, LPSIZE sz);
|
||||
HWND mswin_init_status_window();
|
||||
void mswin_status_window_size(HWND hWnd, LPSIZE sz);
|
||||
|
||||
#endif /* MSWINStatusWindow_h */
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "config.h"
|
||||
#include "global.h"
|
||||
|
||||
HWND mswin_init_text_window ();
|
||||
void mswin_display_text_window (HWND hwnd);
|
||||
HWND mswin_init_text_window();
|
||||
void mswin_display_text_window(HWND hwnd);
|
||||
|
||||
#endif /* MSWINTextWindow_h */
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
#include "winMS.h"
|
||||
|
||||
typedef struct mswin_nethack_text_buffer* PNHTextBuffer;
|
||||
typedef struct mswin_nethack_text_buffer *PNHTextBuffer;
|
||||
PNHTextBuffer mswin_init_text_buffer(BOOL wrap_text);
|
||||
void mswin_free_text_buffer(PNHTextBuffer pb);
|
||||
void mswin_add_text(PNHTextBuffer pb, int attr, const char* text);
|
||||
void mswin_add_text(PNHTextBuffer pb, int attr, const char *text);
|
||||
void mswin_set_text_wrap(PNHTextBuffer pb, BOOL wrap_text);
|
||||
BOOL mswin_get_text_wrap(PNHTextBuffer pb);
|
||||
void mswin_render_text(PNHTextBuffer pb, HWND edit_control);
|
||||
|
||||
@@ -2,39 +2,38 @@
|
||||
#define __NEWRES_H__
|
||||
|
||||
#if !defined(UNDER_CE)
|
||||
#define UNDER_CE _WIN32_WCE
|
||||
#define UNDER_CE _WIN32_WCE
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
#if !defined(WCEOLE_ENABLE_DIALOGEX)
|
||||
#define DIALOGEX DIALOG DISCARDABLE
|
||||
#endif
|
||||
#include <commctrl.h>
|
||||
#define SHMENUBAR RCDATA
|
||||
#if (defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)) && (_WIN32_WCE >= 300)
|
||||
#include <aygshell.h>
|
||||
#else
|
||||
#define I_IMAGENONE (-2)
|
||||
#define NOMENU 0xFFFF
|
||||
#define IDS_SHNEW 1
|
||||
#if !defined(WCEOLE_ENABLE_DIALOGEX)
|
||||
#define DIALOGEX DIALOG DISCARDABLE
|
||||
#endif
|
||||
#include <commctrl.h>
|
||||
#define SHMENUBAR RCDATA
|
||||
#if (defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)) \
|
||||
&& (_WIN32_WCE >= 300)
|
||||
#include <aygshell.h>
|
||||
#else
|
||||
#define I_IMAGENONE (-2)
|
||||
#define NOMENU 0xFFFF
|
||||
#define IDS_SHNEW 1
|
||||
|
||||
#define IDM_SHAREDNEW 10
|
||||
#define IDM_SHAREDNEWDEFAULT 11
|
||||
#endif
|
||||
#define IDM_SHAREDNEW 10
|
||||
#define IDM_SHAREDNEWDEFAULT 11
|
||||
#endif
|
||||
#endif // _WIN32_WCE
|
||||
|
||||
|
||||
#ifdef RC_INVOKED
|
||||
#ifndef _INC_WINDOWS
|
||||
#define _INC_WINDOWS
|
||||
#include "winuser.h" // extract from windows header
|
||||
#include "winuser.h" // extract from windows header
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef IDC_STATIC
|
||||
#undef IDC_STATIC
|
||||
#endif
|
||||
#define IDC_STATIC (-1)
|
||||
#define IDC_STATIC (-1)
|
||||
|
||||
#endif //__NEWRES_H__
|
||||
|
||||
|
||||
@@ -2,163 +2,163 @@
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by winhcksp.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_WINHACK_DIALOG 102
|
||||
#define IDD_ABOUTBOX 103
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDS_HELLO 106
|
||||
#define IDI_WINHACK 107
|
||||
#define IDC_WINHACK 109
|
||||
#define IDC_SPHONE_DIALOGBAR 111
|
||||
#define IDC_SPHONE_TEXTDIALOGBAR 112
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDB_TILES 129
|
||||
#define IDD_TEXT 130
|
||||
#define IDD_NHTEXT 130
|
||||
#define IDD_MENU 132
|
||||
#define IDB_MENU_SEL 133
|
||||
#define IDB_MENU_UNSEL 134
|
||||
#define IDD_COMMANDS 136
|
||||
#define IDD_GETLIN 138
|
||||
#define IDD_EXTCMD 139
|
||||
#define IDD_PLAYER_SELECTOR 141
|
||||
#define IDB_PETMARK 145
|
||||
#define IDB_MENU_SEL_COUNT 146
|
||||
#define IDB_KEYPAD 147
|
||||
#define IDB_MENUBAR 154
|
||||
#define IDC_TEXT_VIEW 1001
|
||||
#define IDC_CMD_MOVE_NW 1001
|
||||
#define IDC_CMD_MOVE_N 1002
|
||||
#define IDC_MENU_LIST 1003
|
||||
#define IDC_CMD_MOVE_NE 1003
|
||||
#define IDC_MENU_TEXT 1004
|
||||
#define IDC_CMD_MOVE_W 1004
|
||||
#define IDC_CMD_MOVE_SELF 1005
|
||||
#define IDC_CMD_MOVE_E 1006
|
||||
#define IDC_CMD_MOVE_SW 1007
|
||||
#define IDC_CMD_MOVE_S 1008
|
||||
#define IDC_CMD_MOVE_SE 1009
|
||||
#define IDC_CMD_MOVE_UP 1010
|
||||
#define IDC_CMD_MOVE_DOWN 1011
|
||||
#define IDC_CMD_5 1012
|
||||
#define IDC_CMD_A 1013
|
||||
#define IDC_CMD_B 1014
|
||||
#define IDC_CMD_C 1015
|
||||
#define IDC_CMD_D 1016
|
||||
#define IDC_CMD_E 1017
|
||||
#define IDC_CMD_F 1018
|
||||
#define IDC_CMD_G 1019
|
||||
#define IDC_CMD_H 1020
|
||||
#define IDC_CMD_I 1021
|
||||
#define IDC_CMD_J 1022
|
||||
#define IDC_CMD_K 1023
|
||||
#define IDC_CMD_L 1024
|
||||
#define IDC_CMD_M 1025
|
||||
#define IDC_CMD_N 1026
|
||||
#define IDC_CMD_O 1027
|
||||
#define IDC_CMD_P 1028
|
||||
#define IDC_CMD_Q 1029
|
||||
#define IDC_CMD_R 1030
|
||||
#define IDC_CMD_S 1031
|
||||
#define IDC_CMD_T 1032
|
||||
#define IDC_CMD_U 1033
|
||||
#define IDC_CMD_V 1034
|
||||
#define IDC_CMD_W 1035
|
||||
#define IDC_CMD_X 1036
|
||||
#define IDC_CMD_Y 1037
|
||||
#define IDC_CMD_Z 1038
|
||||
#define IDC_CMD_AA 1039
|
||||
#define IDC_CMD_BB 1040
|
||||
#define IDC_CMD_CC 1041
|
||||
#define IDC_CMD_DD 1042
|
||||
#define IDC_CMD_EE 1043
|
||||
#define IDC_CMD_FF 1044
|
||||
#define IDC_CMD_GG 1045
|
||||
#define IDC_CMD_HH 1046
|
||||
#define IDC_CMD_II 1047
|
||||
#define IDC_CMD_JJ 1048
|
||||
#define IDC_CMD_KK 1049
|
||||
#define IDC_CMD_LL 1050
|
||||
#define IDC_CMD_MM 1051
|
||||
#define IDC_CMD_NN 1052
|
||||
#define IDC_CMD_OO 1053
|
||||
#define IDC_CMD_PP 1054
|
||||
#define IDC_CMD_QQ 1055
|
||||
#define IDC_CMD_RR 1056
|
||||
#define IDC_CMD_SS 1057
|
||||
#define IDC_CMD_TT 1058
|
||||
#define IDC_CMD_UU 1059
|
||||
#define IDC_CMD_VV 1060
|
||||
#define IDC_CMD_WW 1061
|
||||
#define IDC_CMD_XX 1062
|
||||
#define IDC_CMD_YY 1063
|
||||
#define IDC_CMD_ZZ 1064
|
||||
#define IDC_CMD_FIRST 1100
|
||||
#define IDC_CMD_LAST 1300
|
||||
#define IDC_GETLIN_EDIT 1309
|
||||
#define IDC_EXTCMD_LIST 1310
|
||||
#define IDC_PLSEL_NAME 1314
|
||||
#define IDC_PLSEL_ROLE_RANDOM 1315
|
||||
#define IDC_PLSEL_RACE_RANDOM 1318
|
||||
#define IDC_PLSEL_GENDER_RANDOM 1319
|
||||
#define IDC_PLSEL_ALIGN_RANDOM 1320
|
||||
#define IDC_PLSEL_ROLE_LIST 1323
|
||||
#define IDC_PLSEL_RACE_LIST 1324
|
||||
#define IDC_PLSEL_ALIGN_LIST 1325
|
||||
#define IDC_PLSEL_GENDER_LIST 1326
|
||||
#define IDC_ABOUT_VERSION 1327
|
||||
#define IDC_TEXT_CONTROL 1331
|
||||
#define IDC_ABOUT_COPYRIGHT 1332
|
||||
#define IDC_TEXT_TOGGLE_WRAP 1333
|
||||
#define IDM_SAVE 32771
|
||||
#define IDM_HELP_LONG 32772
|
||||
#define IDM_HELP_COMMANDS 32773
|
||||
#define IDM_HELP_HISTORY 32774
|
||||
#define IDM_HELP_INFO_CHAR 32775
|
||||
#define IDM_HELP_INFO_KEY 32776
|
||||
#define IDM_HELP_OPTIONS 32777
|
||||
#define IDM_HELP_OPTIONS_LONG 32778
|
||||
#define IDM_HELP_EXTCMD 32779
|
||||
#define IDM_HELP_LICENSE 32780
|
||||
#define IDM_MAP_TILES 32781
|
||||
#define IDM_MAP_ASCII4X6 32782
|
||||
#define IDM_MAP_ASCII6X8 32783
|
||||
#define IDM_MAP_ASCII8X8 32784
|
||||
#define IDM_MAP_ASCII16X8 32785
|
||||
#define IDM_MAP_ASCII7X12 32786
|
||||
#define IDM_MAP_ASCII8X12 32787
|
||||
#define IDM_MAP_ASCII16X12 32788
|
||||
#define IDM_MAP_ASCII12X16 32789
|
||||
#define IDM_MAP_ASCII10X18 32790
|
||||
#define IDM_MAP_FIT_TO_SCREEN 32791
|
||||
#define ID_FILE 32792
|
||||
#define IDS_CAP_FILE 32793
|
||||
#define ID_HELP 32794
|
||||
#define IDS_CAP_HELP 32795
|
||||
#define IDS_CAP_TEMP 32796
|
||||
#define ID_MAP 32797
|
||||
#define IDS_CAP_AMP 32798
|
||||
#define IDS_CAP_MAP 32799
|
||||
#define IDM_VIEW_KEYPAD 32800
|
||||
#define ID_VIEW 32801
|
||||
#define IDS_CAP_VIEW 32802
|
||||
#define IDS_CAP_ENTIREMAP 32826
|
||||
#define IDS_CAP_NORMALMAP 32827
|
||||
#define IDM_HELP_MENU 32828
|
||||
#define IDM_VIEW_OPTIONS 32829
|
||||
#define IDM_DIRECT_COMMAND 32830
|
||||
#define IDS_TEXT_WRAP 32831
|
||||
#define IDS_TEXT_UNWRAP 32832
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_WINHACK_DIALOG 102
|
||||
#define IDD_ABOUTBOX 103
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDS_HELLO 106
|
||||
#define IDI_WINHACK 107
|
||||
#define IDC_WINHACK 109
|
||||
#define IDC_SPHONE_DIALOGBAR 111
|
||||
#define IDC_SPHONE_TEXTDIALOGBAR 112
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDB_TILES 129
|
||||
#define IDD_TEXT 130
|
||||
#define IDD_NHTEXT 130
|
||||
#define IDD_MENU 132
|
||||
#define IDB_MENU_SEL 133
|
||||
#define IDB_MENU_UNSEL 134
|
||||
#define IDD_COMMANDS 136
|
||||
#define IDD_GETLIN 138
|
||||
#define IDD_EXTCMD 139
|
||||
#define IDD_PLAYER_SELECTOR 141
|
||||
#define IDB_PETMARK 145
|
||||
#define IDB_MENU_SEL_COUNT 146
|
||||
#define IDB_KEYPAD 147
|
||||
#define IDB_MENUBAR 154
|
||||
#define IDC_TEXT_VIEW 1001
|
||||
#define IDC_CMD_MOVE_NW 1001
|
||||
#define IDC_CMD_MOVE_N 1002
|
||||
#define IDC_MENU_LIST 1003
|
||||
#define IDC_CMD_MOVE_NE 1003
|
||||
#define IDC_MENU_TEXT 1004
|
||||
#define IDC_CMD_MOVE_W 1004
|
||||
#define IDC_CMD_MOVE_SELF 1005
|
||||
#define IDC_CMD_MOVE_E 1006
|
||||
#define IDC_CMD_MOVE_SW 1007
|
||||
#define IDC_CMD_MOVE_S 1008
|
||||
#define IDC_CMD_MOVE_SE 1009
|
||||
#define IDC_CMD_MOVE_UP 1010
|
||||
#define IDC_CMD_MOVE_DOWN 1011
|
||||
#define IDC_CMD_5 1012
|
||||
#define IDC_CMD_A 1013
|
||||
#define IDC_CMD_B 1014
|
||||
#define IDC_CMD_C 1015
|
||||
#define IDC_CMD_D 1016
|
||||
#define IDC_CMD_E 1017
|
||||
#define IDC_CMD_F 1018
|
||||
#define IDC_CMD_G 1019
|
||||
#define IDC_CMD_H 1020
|
||||
#define IDC_CMD_I 1021
|
||||
#define IDC_CMD_J 1022
|
||||
#define IDC_CMD_K 1023
|
||||
#define IDC_CMD_L 1024
|
||||
#define IDC_CMD_M 1025
|
||||
#define IDC_CMD_N 1026
|
||||
#define IDC_CMD_O 1027
|
||||
#define IDC_CMD_P 1028
|
||||
#define IDC_CMD_Q 1029
|
||||
#define IDC_CMD_R 1030
|
||||
#define IDC_CMD_S 1031
|
||||
#define IDC_CMD_T 1032
|
||||
#define IDC_CMD_U 1033
|
||||
#define IDC_CMD_V 1034
|
||||
#define IDC_CMD_W 1035
|
||||
#define IDC_CMD_X 1036
|
||||
#define IDC_CMD_Y 1037
|
||||
#define IDC_CMD_Z 1038
|
||||
#define IDC_CMD_AA 1039
|
||||
#define IDC_CMD_BB 1040
|
||||
#define IDC_CMD_CC 1041
|
||||
#define IDC_CMD_DD 1042
|
||||
#define IDC_CMD_EE 1043
|
||||
#define IDC_CMD_FF 1044
|
||||
#define IDC_CMD_GG 1045
|
||||
#define IDC_CMD_HH 1046
|
||||
#define IDC_CMD_II 1047
|
||||
#define IDC_CMD_JJ 1048
|
||||
#define IDC_CMD_KK 1049
|
||||
#define IDC_CMD_LL 1050
|
||||
#define IDC_CMD_MM 1051
|
||||
#define IDC_CMD_NN 1052
|
||||
#define IDC_CMD_OO 1053
|
||||
#define IDC_CMD_PP 1054
|
||||
#define IDC_CMD_QQ 1055
|
||||
#define IDC_CMD_RR 1056
|
||||
#define IDC_CMD_SS 1057
|
||||
#define IDC_CMD_TT 1058
|
||||
#define IDC_CMD_UU 1059
|
||||
#define IDC_CMD_VV 1060
|
||||
#define IDC_CMD_WW 1061
|
||||
#define IDC_CMD_XX 1062
|
||||
#define IDC_CMD_YY 1063
|
||||
#define IDC_CMD_ZZ 1064
|
||||
#define IDC_CMD_FIRST 1100
|
||||
#define IDC_CMD_LAST 1300
|
||||
#define IDC_GETLIN_EDIT 1309
|
||||
#define IDC_EXTCMD_LIST 1310
|
||||
#define IDC_PLSEL_NAME 1314
|
||||
#define IDC_PLSEL_ROLE_RANDOM 1315
|
||||
#define IDC_PLSEL_RACE_RANDOM 1318
|
||||
#define IDC_PLSEL_GENDER_RANDOM 1319
|
||||
#define IDC_PLSEL_ALIGN_RANDOM 1320
|
||||
#define IDC_PLSEL_ROLE_LIST 1323
|
||||
#define IDC_PLSEL_RACE_LIST 1324
|
||||
#define IDC_PLSEL_ALIGN_LIST 1325
|
||||
#define IDC_PLSEL_GENDER_LIST 1326
|
||||
#define IDC_ABOUT_VERSION 1327
|
||||
#define IDC_TEXT_CONTROL 1331
|
||||
#define IDC_ABOUT_COPYRIGHT 1332
|
||||
#define IDC_TEXT_TOGGLE_WRAP 1333
|
||||
#define IDM_SAVE 32771
|
||||
#define IDM_HELP_LONG 32772
|
||||
#define IDM_HELP_COMMANDS 32773
|
||||
#define IDM_HELP_HISTORY 32774
|
||||
#define IDM_HELP_INFO_CHAR 32775
|
||||
#define IDM_HELP_INFO_KEY 32776
|
||||
#define IDM_HELP_OPTIONS 32777
|
||||
#define IDM_HELP_OPTIONS_LONG 32778
|
||||
#define IDM_HELP_EXTCMD 32779
|
||||
#define IDM_HELP_LICENSE 32780
|
||||
#define IDM_MAP_TILES 32781
|
||||
#define IDM_MAP_ASCII4X6 32782
|
||||
#define IDM_MAP_ASCII6X8 32783
|
||||
#define IDM_MAP_ASCII8X8 32784
|
||||
#define IDM_MAP_ASCII16X8 32785
|
||||
#define IDM_MAP_ASCII7X12 32786
|
||||
#define IDM_MAP_ASCII8X12 32787
|
||||
#define IDM_MAP_ASCII16X12 32788
|
||||
#define IDM_MAP_ASCII12X16 32789
|
||||
#define IDM_MAP_ASCII10X18 32790
|
||||
#define IDM_MAP_FIT_TO_SCREEN 32791
|
||||
#define ID_FILE 32792
|
||||
#define IDS_CAP_FILE 32793
|
||||
#define ID_HELP 32794
|
||||
#define IDS_CAP_HELP 32795
|
||||
#define IDS_CAP_TEMP 32796
|
||||
#define ID_MAP 32797
|
||||
#define IDS_CAP_AMP 32798
|
||||
#define IDS_CAP_MAP 32799
|
||||
#define IDM_VIEW_KEYPAD 32800
|
||||
#define ID_VIEW 32801
|
||||
#define IDS_CAP_VIEW 32802
|
||||
#define IDS_CAP_ENTIREMAP 32826
|
||||
#define IDS_CAP_NORMALMAP 32827
|
||||
#define IDM_HELP_MENU 32828
|
||||
#define IDM_VIEW_OPTIONS 32829
|
||||
#define IDM_DIRECT_COMMAND 32830
|
||||
#define IDS_TEXT_WRAP 32831
|
||||
#define IDS_TEXT_UNWRAP 32832
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 155
|
||||
#define _APS_NEXT_COMMAND_VALUE 32833
|
||||
#define _APS_NEXT_CONTROL_VALUE 1334
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#define _APS_NEXT_RESOURCE_VALUE 155
|
||||
#define _APS_NEXT_COMMAND_VALUE 32833
|
||||
#define _APS_NEXT_CONTROL_VALUE 1334
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef WINMS_H
|
||||
#define WINMS_H
|
||||
|
||||
#pragma warning(disable:4142) /* benign redefinition of type */
|
||||
#pragma warning(disable : 4142) /* benign redefinition of type */
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
@@ -17,12 +17,12 @@
|
||||
#include "hack.h"
|
||||
|
||||
#if defined(WIN_CE_POCKETPC)
|
||||
#include <aygshell.h>
|
||||
#include <aygshell.h>
|
||||
#include <sipapi.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN_CE_SMARTPHONE)
|
||||
#include <aygshell.h>
|
||||
#include <aygshell.h>
|
||||
#include <sipapi.h>
|
||||
#include <shlobj.h>
|
||||
#include <prsht.h>
|
||||
@@ -45,8 +45,8 @@
|
||||
#endif
|
||||
|
||||
/* RIP window ID */
|
||||
#define NHW_RIP 32
|
||||
#define NHW_KEYPAD 33
|
||||
#define NHW_RIP 32
|
||||
#define NHW_KEYPAD 33
|
||||
|
||||
/* size of tiles */
|
||||
#ifndef TILE_X
|
||||
@@ -55,7 +55,7 @@
|
||||
#define TILE_Y 16
|
||||
|
||||
/* tiles per line in the bitmap */
|
||||
#define TILES_PER_LINE 40
|
||||
#define TILES_PER_LINE 40
|
||||
|
||||
/* tile background color */
|
||||
#define TILE_BK_COLOR RGB(71, 108, 108)
|
||||
@@ -67,42 +67,43 @@
|
||||
#define NHFONT_SIZE_MAX 20
|
||||
|
||||
typedef struct mswin_nhwindow_data {
|
||||
HWND win;
|
||||
int type;
|
||||
int dead;
|
||||
HWND win;
|
||||
int type;
|
||||
int dead;
|
||||
} MSNHWinData, *PMSNHWinData;
|
||||
|
||||
/* global application data - alailable thour GetNHApp() */
|
||||
typedef struct mswin_nhwindow_app {
|
||||
HINSTANCE hApp; /* hInstance from WinMain */
|
||||
int nCmdShow; /* main window mode flag */
|
||||
HWND hMainWnd; /* main window handle */
|
||||
HACCEL hAccelTable; /* accelerator table */
|
||||
HWND hPopupWnd; /* active dialog window (nethack menu, text, etc) */
|
||||
HWND hMenuBar; /* menu bar */
|
||||
HINSTANCE hApp; /* hInstance from WinMain */
|
||||
int nCmdShow; /* main window mode flag */
|
||||
HWND hMainWnd; /* main window handle */
|
||||
HACCEL hAccelTable; /* accelerator table */
|
||||
HWND hPopupWnd; /* active dialog window (nethack menu, text, etc) */
|
||||
HWND hMenuBar; /* menu bar */
|
||||
|
||||
MSNHWinData windowlist[MAXWINDOWS]; /* nethack windows array */
|
||||
MSNHWinData windowlist[MAXWINDOWS]; /* nethack windows array */
|
||||
|
||||
HBITMAP bmpTiles; /* nethack tiles */
|
||||
HBITMAP bmpPetMark; /* pet mark Bitmap */
|
||||
HBITMAP bmpMapTiles; /* alternative map tiles */
|
||||
int mapTile_X; /* alt. tiles width */
|
||||
int mapTile_Y; /* alt. tiles height */
|
||||
int mapTilesPerLine; /* number of tile per row in the bitmap */
|
||||
HBITMAP bmpTiles; /* nethack tiles */
|
||||
HBITMAP bmpPetMark; /* pet mark Bitmap */
|
||||
HBITMAP bmpMapTiles; /* alternative map tiles */
|
||||
int mapTile_X; /* alt. tiles width */
|
||||
int mapTile_Y; /* alt. tiles height */
|
||||
int mapTilesPerLine; /* number of tile per row in the bitmap */
|
||||
|
||||
boolean bNoHScroll; /* disable cliparound for horizontal grid (map) */
|
||||
boolean bNoVScroll; /* disable cliparound for vertical grid (map) */
|
||||
boolean bNoHScroll; /* disable cliparound for horizontal grid (map) */
|
||||
boolean bNoVScroll; /* disable cliparound for vertical grid (map) */
|
||||
|
||||
int mapDisplayModeSave; /* saved map display mode */
|
||||
int mapDisplayModeSave; /* saved map display mode */
|
||||
|
||||
int bCmdPad; /* command pad - on-screen keyboard */
|
||||
HWND hCmdWnd; /* handle of on-screen keyboard window */
|
||||
int bCmdPad; /* command pad - on-screen keyboard */
|
||||
HWND hCmdWnd; /* handle of on-screen keyboard window */
|
||||
|
||||
/* options */
|
||||
boolean bWrapText; /* format text to fit the window */
|
||||
boolean bFullScreen;/* run nethack in full-screen mode */
|
||||
boolean bHideScrollBars; /* hide scroll bars */
|
||||
boolean bUseSIP; /* use SIP (built-in software keyboard) for menus (PocketPC only) */
|
||||
/* options */
|
||||
boolean bWrapText; /* format text to fit the window */
|
||||
boolean bFullScreen; /* run nethack in full-screen mode */
|
||||
boolean bHideScrollBars; /* hide scroll bars */
|
||||
boolean bUseSIP; /* use SIP (built-in software keyboard) for menus
|
||||
(PocketPC only) */
|
||||
} NHWinApp, *PNHWinApp;
|
||||
extern PNHWinApp GetNHApp();
|
||||
|
||||
@@ -113,7 +114,7 @@ E struct window_procs mswin_procs;
|
||||
#undef E
|
||||
|
||||
/* Some prototypes */
|
||||
void mswin_init_nhwindows(int* argc, char** argv);
|
||||
void mswin_init_nhwindows(int *argc, char **argv);
|
||||
void mswin_player_selection(void);
|
||||
void mswin_askname(void);
|
||||
void mswin_get_nh_event(void);
|
||||
@@ -127,28 +128,27 @@ void mswin_destroy_nhwindow(winid wid);
|
||||
void mswin_curs(winid wid, int x, int y);
|
||||
void mswin_putstr(winid wid, int attr, const char *text);
|
||||
void mswin_putstr_ex(winid wid, int attr, const char *text, boolean append);
|
||||
void mswin_display_file(const char *filename,BOOLEAN_P must_exist);
|
||||
void mswin_display_file(const char *filename, BOOLEAN_P must_exist);
|
||||
void mswin_start_menu(winid wid);
|
||||
void mswin_add_menu(winid wid, int glyph, const ANY_P * identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
void mswin_add_menu(winid wid, int glyph, const ANY_P *identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
void mswin_end_menu(winid wid, const char *prompt);
|
||||
int mswin_select_menu(winid wid, int how, MENU_ITEM_P **selected);
|
||||
int mswin_select_menu(winid wid, int how, MENU_ITEM_P **selected);
|
||||
void mswin_update_inventory(void);
|
||||
void mswin_mark_synch(void);
|
||||
void mswin_wait_synch(void);
|
||||
void mswin_cliparound(int x, int y);
|
||||
void mswin_print_glyph(winid wid,XCHAR_P x,XCHAR_P y,int glyph);
|
||||
void mswin_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph);
|
||||
void mswin_raw_print(const char *str);
|
||||
void mswin_raw_print_bold(const char *str);
|
||||
int mswin_nhgetch(void);
|
||||
int mswin_nh_poskey(int *x, int *y, int *mod);
|
||||
int mswin_nhgetch(void);
|
||||
int mswin_nh_poskey(int *x, int *y, int *mod);
|
||||
void mswin_nhbell(void);
|
||||
int mswin_doprev_message(void);
|
||||
char mswin_yn_function(const char *question, const char *choices,
|
||||
CHAR_P def);
|
||||
int mswin_doprev_message(void);
|
||||
char mswin_yn_function(const char *question, const char *choices, CHAR_P def);
|
||||
void mswin_getlin(const char *question, char *input);
|
||||
int mswin_get_ext_cmd(void);
|
||||
int mswin_get_ext_cmd(void);
|
||||
void mswin_number_pad(int state);
|
||||
void mswin_delay_output(void);
|
||||
void mswin_change_color(void);
|
||||
@@ -164,16 +164,15 @@ winid mswin_winid_from_type(int type);
|
||||
winid mswin_winid_from_handle(HWND hWnd);
|
||||
void mswin_window_mark_dead(winid wid);
|
||||
void bail(const char *mesg);
|
||||
void nhapply_image_transparent(
|
||||
HDC hDC, int x, int y, int width, int height,
|
||||
HDC sourceDC, int s_x, int s_y, int s_width, int s_height,
|
||||
COLORREF cTransparent
|
||||
);
|
||||
void mswin_popup_display(HWND popup, int* done_indicator);
|
||||
void nhapply_image_transparent(HDC hDC, int x, int y, int width, int height,
|
||||
HDC sourceDC, int s_x, int s_y, int s_width,
|
||||
int s_height, COLORREF cTransparent);
|
||||
void mswin_popup_display(HWND popup, int *done_indicator);
|
||||
void mswin_popup_destroy(HWND popup);
|
||||
|
||||
#if defined(WIN_CE_SMARTPHONE)
|
||||
void NHSPhoneDialogSetup(HWND hDlg, UINT nToolBarId, BOOL is_edit, BOOL is_fullscreen);
|
||||
void NHSPhoneDialogSetup(HWND hDlg, UINT nToolBarId, BOOL is_edit,
|
||||
BOOL is_fullscreen);
|
||||
#endif
|
||||
|
||||
void mswin_read_reg(void);
|
||||
|
||||
Reference in New Issue
Block a user