--- np2/win9x/dialog/dialogs.h 2003/10/16 17:59:03 1.1.1.1 +++ np2/win9x/dialog/dialogs.h 2006/12/24 00:52:30 1.8 @@ -1,61 +1,52 @@ -#ifdef STRICT -#define SUBCLASSPROC WNDPROC -#else -#define SUBCLASSPROC FARPROC -#endif - typedef struct { -const char *title; -const char *ext; -const char *filter; +const TCHAR *title; +const TCHAR *ext; +const TCHAR *filter; int defindex; } FILESEL; -extern const char str_int0[]; -extern const char str_int1[]; -extern const char str_int2[]; -extern const char str_int4[]; -extern const char str_int5[]; -extern const char str_int6[]; +extern const TCHAR str_nc[]; +extern const TCHAR str_int0[]; +extern const TCHAR str_int1[]; +extern const TCHAR str_int2[]; +extern const TCHAR str_int4[]; +extern const TCHAR str_int5[]; +extern const TCHAR str_int6[]; #define SetDlgItemCheck(a, b, c) \ SendDlgItemMessage((a), (b), BM_SETCHECK, (c), 0) #define GetDlgItemCheck(a, b) \ - (((int)SendDlgItemMessage((a), (b), BM_GETCHECK, 0, 0))?1:0) + (((int)SendDlgItemMessage((a), (b), BM_GETCHECK, 0, 0)) != 0) #define AVE(a, b) \ (((a) + (b)) / 2) #define SETLISTSTR(a, b, c) \ - dlgs_setliststr((a), (b), (c), sizeof((c))/sizeof(char *)) + dlgs_setliststr((a), (b), (c), NELEMENTS((c))) #define SETnLISTSTR(a, b, c, d) \ dlgs_setliststr((a), (b), (c), (d)) #define SETLISTUINT32(a, b, c) \ - dlgs_setlistuint32((a), (b), (c), sizeof((c))/sizeof(UINT32)) - + dlgs_setlistuint32((a), (b), (c), NELEMENTS((c))) -const char *dlgs_selectfile(HWND hWnd, const FILESEL *item, - const char *defname, char *folder, UINT size, int *ro); -const char *dlgs_selectwritefile(HWND hWnd, const FILESEL *item, - const char *defname, char *folder, UINT size); -const char *dlgs_selectwritenum(HWND hWnd, const FILESEL *item, - const char *defname, char *folder, UINT size); -void dlgs_browsemimpidef(HWND hWnd, WORD res); +BOOL dlgs_selectfile(HWND hWnd, const FILESEL *item, + OEMCHAR *path, UINT size, int *ro); +BOOL dlgs_selectwritefile(HWND hWnd, const FILESEL *item, + OEMCHAR *path, UINT size); +BOOL dlgs_selectwritenum(HWND hWnd, const FILESEL *item, + OEMCHAR *path, UINT size); -void dlgs_setliststr(HWND hWnd, WORD res, const char **item, UINT items); -void dlgs_setlistuint32(HWND hWnd, WORD res, const UINT32 *item, UINT items); +void dlgs_browsemimpidef(HWND hWnd, UINT16 res); -void dlgs_setlistmidiout(HWND hWnd, WORD res, const char *defname); -void dlgs_setlistmidiin(HWND hWnd, WORD res, const char *defname); +void dlgs_setliststr(HWND hWnd, UINT16 res, const TCHAR **item, UINT items); +void dlgs_setlistuint32(HWND hWnd, UINT16 res, const UINT32 *item, UINT items); -void dlgs_linex(BYTE *image, int x, int y, int l, int align, BYTE c); -void dlgs_liney(BYTE *image, int x, int y, int l, int align, BYTE c); +void dlgs_setlistmidiout(HWND hWnd, UINT16 res, const OEMCHAR *defname); +void dlgs_setlistmidiin(HWND hWnd, UINT16 res, const OEMCHAR *defname); -void dlgs_setjumperx(BYTE *image, int x, int y, int align); -void dlgs_setjumpery(BYTE *image, int x, int y, int align); +void dlgs_drawbmp(HDC hdc, UINT8 *bmp);