mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: Finally!! Compilation works once again on Windows. However, it's pretty buggy. Modality isn't really working right, you can still poke at other windows, but when you select ListView items, they redraw as empty boxes (need to process WM_DRAWITEM before checking modality.) The program crashes when you close it (probably a ruby driver's term() function, that's what it usually is.) The Layout::setEnabled(false) call isn't working right, so you get that annoying chiming sound and cursor movement when mapping keyboard keys to game inputs. The column sizing seems off a bit on first display for the Hotkeys tab. And probably lots more.
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
#define UNICODE
|
|
#define WINVER 0x0601
|
|
#define _WIN32_WINNT WINVER
|
|
#define _WIN32_IE WINVER
|
|
#define __MSVCRT_VERSION__ WINVER
|
|
#define NOMINMAX
|
|
|
|
#include <winsock2.h>
|
|
#include <windows.h>
|
|
#include <windowsx.h>
|
|
#include <commctrl.h>
|
|
#include <uxtheme.h>
|
|
#include <io.h>
|
|
#include <shlobj.h>
|
|
#include <nall/windows/registry.hpp>
|
|
#include <nall/windows/utf8.hpp>
|
|
|
|
//MinGW/32-bit has painfully outdated platform headers ...
|
|
|
|
#if !defined(Button_SetImageList)
|
|
typedef struct {
|
|
HIMAGELIST himl;
|
|
RECT margin;
|
|
UINT uAlign;
|
|
} BUTTON_IMAGELIST, *PBUTTON_IMAGELIST;
|
|
|
|
#define BUTTON_IMAGELIST_ALIGN_LEFT 0
|
|
#define BUTTON_IMAGELIST_ALIGN_RIGHT 1
|
|
#define BUTTON_IMAGELIST_ALIGN_TOP 2
|
|
#define BUTTON_IMAGELIST_ALIGN_BOTTOM 3
|
|
#define BUTTON_IMAGELIST_ALIGN_CENTER 4
|
|
|
|
#define BCM_FIRST 0x1600
|
|
#define BCM_SETIMAGELIST (BCM_FIRST+2)
|
|
#define Button_SetImageList(hwnd, pbuttonImagelist) (WINBOOL)SNDMSG((hwnd),BCM_SETIMAGELIST,0,(LPARAM)(pbuttonImagelist))
|
|
#endif
|
|
|
|
#if !defined(BP_CHECKBOX)
|
|
#define BP_CHECKBOX 3
|
|
#endif
|
|
|
|
#if !defined(CBS_UNCHECKEDNORMAL)
|
|
#define CBS_UNCHECKEDNORMAL 1
|
|
#endif
|
|
|
|
#if !defined(CBS_CHECKEDNORMAL)
|
|
#define CBS_CHECKEDNORMAL 5
|
|
#endif
|
|
|
|
#if !defined(LVCFMT_FIXED_WIDTH)
|
|
#define LVCFMT_FIXED_WIDTH 0x0100
|
|
#endif
|
|
|
|
#if !defined(TBS_TRANSPARENTBKGND)
|
|
#define TBS_TRANSPARENTBKGND 0x1000
|
|
#endif
|