2017-05-22 00:21:22 -04:00
|
|
|
/*
|
|
|
|
|
* This should be named 'plat.h' and then include any
|
|
|
|
|
* Windows-specific header files needed, to keep them
|
|
|
|
|
* out of the main code.
|
|
|
|
|
*/
|
2017-05-18 14:03:43 -04:00
|
|
|
/* Copyright holders: Sarah Walker
|
|
|
|
|
see COPYING for more details
|
|
|
|
|
*/
|
2017-05-22 00:21:22 -04:00
|
|
|
#ifndef BOX_WIN_H
|
|
|
|
|
# define BOX_WIN_H
|
2017-05-24 00:27:42 -04:00
|
|
|
# ifndef NO_UNICODE
|
|
|
|
|
# define UNICODE
|
|
|
|
|
# endif
|
2017-05-22 00:21:22 -04:00
|
|
|
# define BITMAP WINDOWS_BITMAP
|
2017-05-24 00:27:42 -04:00
|
|
|
//# ifdef _WIN32_WINNT
|
|
|
|
|
//# undef _WIN32_WINNT
|
|
|
|
|
//# define _WIN32_WINNT 0x0501
|
|
|
|
|
//# endif
|
2017-05-22 00:21:22 -04:00
|
|
|
# include <windows.h>
|
|
|
|
|
# undef BITMAP
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
|
2017-05-18 14:03:43 -04:00
|
|
|
#define szClassName L"86BoxMainWnd"
|
|
|
|
|
#define szSubClassName L"86BoxSubWnd"
|
|
|
|
|
#define szStatusBarClassName L"86BoxStatusBar"
|
|
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
|
|
|
|
|
extern HINSTANCE hinstance;
|
|
|
|
|
extern HWND ghwnd;
|
|
|
|
|
extern HWND status_hwnd;
|
|
|
|
|
extern HWND hwndStatus;
|
|
|
|
|
extern int status_is_open;
|
|
|
|
|
extern int mousecapture;
|
|
|
|
|
|
|
|
|
|
extern char openfilestring[260];
|
|
|
|
|
extern WCHAR wopenfilestring[260];
|
|
|
|
|
|
|
|
|
|
extern int pause;
|
|
|
|
|
|
2017-05-18 14:03:43 -04:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2017-05-22 00:21:22 -04:00
|
|
|
extern "C" {
|
2017-05-18 14:03:43 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void leave_fullscreen(void);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void status_open(HWND hwnd);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void deviceconfig_open(HWND hwnd, struct device_t *device);
|
|
|
|
|
extern void joystickconfig_open(HWND hwnd, int joy_nr, int type);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern int getfile(HWND hwnd, char *f, char *fn);
|
|
|
|
|
extern int getsfile(HWND hwnd, char *f, char *fn);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void get_executable_name(WCHAR *s, int size);
|
|
|
|
|
extern void set_window_title(WCHAR *s);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void startblit(void);
|
|
|
|
|
extern void endblit(void);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void win_settings_open(HWND hwnd);
|
|
|
|
|
extern void win_menu_update();
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void update_status_bar_panes(HWND hwnds);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern int fdd_type_to_icon(int type);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
extern void hard_disk_add_open(HWND hwnd, int is_existing);
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2017-05-18 14:03:43 -04:00
|
|
|
|
2017-05-19 04:35:59 +02:00
|
|
|
|
2017-05-22 00:21:22 -04:00
|
|
|
#endif /*BOX_WIN_H*/
|