size_t result_size;
};
-LRESULT CALLBACK GetlinDlgProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CALLBACK GetlinDlgProc(HWND, UINT, WPARAM, LPARAM);
int mswin_getlin_window (
const char *question,
return ret;
}
-LRESULT CALLBACK GetlinDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+BOOL CALLBACK GetlinDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
struct getlin_data* data;
RECT main_rt, dlg_rt;
int* selection;
};
-LRESULT CALLBACK ExtCmdDlgProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CALLBACK ExtCmdDlgProc(HWND, UINT, WPARAM, LPARAM);
int mswin_ext_cmd_window (int* selection)
{
return ret;
}
-LRESULT CALLBACK ExtCmdDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+BOOL CALLBACK ExtCmdDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
struct extcmd_data* data;
RECT main_rt, dlg_rt;
int* selection;
};
-LRESULT CALLBACK PlayerSelectorDlgProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CALLBACK PlayerSelectorDlgProc(HWND, UINT, WPARAM, LPARAM);
static void plselInitDialog(HWND hWnd);
static void plselAdjustLists(HWND hWnd, int changed_opt);
static int plselFinalSelection(HWND hWnd, int* selection);
return ret;
}
-LRESULT CALLBACK PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+BOOL CALLBACK PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
struct plsel_data* data;
RECT main_rt, dlg_rt;
#define NHMENU_IS_SELECTABLE(item) ((item).identifier.a_obj!=NULL)
-LRESULT CALLBACK MenuWndProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CALLBACK MenuWndProc(HWND, UINT, WPARAM, LPARAM);
static void onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
-static LRESULT onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam);
-static LRESULT onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam);
-static LRESULT onListChar(HWND hWnd, HWND hwndList, WORD ch);
+static BOOL onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam);
+static BOOL onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam);
+static BOOL onListChar(HWND hWnd, HWND hwndList, WORD ch);
static void LayoutMenu(HWND hwnd);
static void SetMenuType(HWND hwnd, int type);
static void SetMenuListType(HWND hwnd, int now);
return ret_val;
}
-LRESULT CALLBACK MenuWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+BOOL CALLBACK MenuWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PNHMenuWindow data;
int nItem;
}
-LRESULT onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
+BOOL onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
LPMEASUREITEMSTRUCT lpmis;
TEXTMETRIC tm;
return TRUE;
}
-LRESULT onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
+BOOL onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
LPDRAWITEMSTRUCT lpdis;
PNHMenuItem item;
return TRUE;
}
-LRESULT onListChar(HWND hWnd, HWND hwndList, WORD ch)
+BOOL onListChar(HWND hWnd, HWND hwndList, WORD ch)
{
int i = 0;
PNHMenuWindow data;
#include "mhmsg.h"
#include "mhfont.h"
+PNHWinApp GetNHApp(void);
+
typedef struct mswin_nethack_text_window {
TCHAR* window_text;
} NHTextWindow, *PNHTextWindow;
-LRESULT CALLBACK TextWndProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CALLBACK TextWndProc(HWND, UINT, WPARAM, LPARAM);
static void onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
static void LayoutText(HWND hwnd);
GetNHApp()->hMenuWnd = NULL;
}
-LRESULT CALLBACK TextWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+BOOL CALLBACK TextWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HWND control;
HDC hdc;
#define SHARED_DCL extern
#endif
-SHARED_DCL char orgdir[PATHLEN]; /* also used in pcsys.c, amidos.c */
-
extern void FDECL(nethack_exit,(int));
// Global Variables:
NHWinApp _nethack_app;
+#ifdef __BORLANDC__
+#define _stricmp(s1,s2) stricmp(s1,s2)
+#define _strdup(s1) strdup(s1)
+#endif
+
// Foward declarations of functions included in this code module:
BOOL InitInstance(HINSTANCE, int);
//Microsoft Developer Studio generated resource script.
//
+#if defined(__BORLANDC__)
+LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
+#endif
+
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS