--- np2/win9x/dialog/dialogs.h 2005/02/09 20:11:36 1.5 +++ np2/win9x/dialog/dialogs.h 2007/10/26 14:38:34 1.9 @@ -1,43 +1,39 @@ -#ifdef STRICT -#define SUBCLASSPROC WNDPROC -#else -#define SUBCLASSPROC FARPROC -#endif - typedef struct { -const OEMCHAR *title; -const OEMCHAR *ext; -const OEMCHAR *filter; - int defindex; +const TCHAR *title; +const TCHAR *ext; +const TCHAR *filter; + int defindex; } FILESEL; -extern const OEMCHAR str_nc[]; -extern const OEMCHAR str_int0[]; -extern const OEMCHAR str_int1[]; -extern const OEMCHAR str_int2[]; -extern const OEMCHAR str_int4[]; -extern const OEMCHAR str_int5[]; -extern const OEMCHAR 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(OEMCHAR *)) + 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))) +void dlgs_enablebyautocheck(HWND hWnd, UINT uID, UINT uCheckID); +void dlgs_disablebyautocheck(HWND hWnd, UINT uID, UINT uCheckID); BOOL dlgs_selectfile(HWND hWnd, const FILESEL *item, OEMCHAR *path, UINT size, int *ro); @@ -48,11 +44,18 @@ BOOL dlgs_selectwritenum(HWND hWnd, cons void dlgs_browsemimpidef(HWND hWnd, UINT16 res); -void dlgs_setliststr(HWND hWnd, UINT16 res, const OEMCHAR **item, UINT items); +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_setdroplistitem(HWND hWnd, UINT uID, + const TCHAR **ppszItem, UINT uItems); +void dlgs_setdroplistnumber(HWND hWnd, UINT uID, int nPos); +int dlgs_getdroplistnumber(HWND hWnd, UINT uID); + void dlgs_setlistmidiout(HWND hWnd, UINT16 res, const OEMCHAR *defname); void dlgs_setlistmidiin(HWND hWnd, UINT16 res, const OEMCHAR *defname); void dlgs_drawbmp(HDC hdc, UINT8 *bmp); +BOOL dlgs_getitemrect(HWND hWnd, UINT uID, RECT *pRect); +