--- np2/win9x/dialog/dialogs.h 2007/11/11 07:11:28 1.10 +++ np2/win9x/dialog/dialogs.h 2007/12/17 14:52:56 1.13 @@ -1,11 +1,4 @@ -typedef struct { -const TCHAR *title; -const TCHAR *ext; -const TCHAR *filter; - int defindex; -} FILESEL; - struct tagFileSelectParam { LPTSTR lpszTitle; @@ -26,13 +19,15 @@ typedef struct tagCBParam CBPARAM; typedef struct tagCBParam *PCBPARAM; typedef const struct tagCBParam *PCCBPARAM; -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[]; +struct tagCBNParam +{ + UINT uValue; + int nItemData; +}; +typedef struct tagCBNParam CBNPARAM; +typedef struct tagCBNParam *PCBNPARAM; +typedef const struct tagCBNParam *PCCBNPARAM; + #define SetDlgItemCheck(a, b, c) \ SendDlgItemMessage((a), (b), BM_SETCHECK, (c), 0) @@ -67,7 +62,8 @@ void dlgs_browsemimpidef(HWND hWnd, UINT 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_setcbitem(HWND hWnd, UINT uID, PCCBPARAM pItem, UINT uItems); +void dlgs_setcbitem(HWND hWnd, UINT uID, PCCBPARAM pcItem, UINT uItems); +void dlgs_setcbnumber(HWND hWnd, UINT uID, PCCBNPARAM pcItem, UINT uItems); void dlgs_setcbcur(HWND hWnd, UINT uID, int nItemData); int dlgs_getcbcur(HWND hWnd, UINT uID, int nDefault);