--- np2/win9x/dialog/dialogs.cpp 2007/12/28 20:36:40 1.16 +++ np2/win9x/dialog/dialogs.cpp 2011/03/07 09:54:11 1.18 @@ -1,17 +1,27 @@ -#include "compiler.h" -#include "resource.h" -#include "strres.h" -#include "bmpdata.h" -#include "oemtext.h" -#include "dosio.h" -#include "commng.h" -#include "dialogs.h" -#include "np2.h" +/** + * @file dialogs.cpp + * @brief Dialog subroutines + * + * @author $Author: yui $ + * @date $Date: 2011/03/07 09:54:11 $ + */ + +#include "compiler.h" +#include "resource.h" +#include "strres.h" +#include "bmpdata.h" +#include "oemtext.h" +#include "dosio.h" +#include "commng.h" +#include "dialogs.h" +#include "np2.h" #if defined(MT32SOUND_DLL) -#include "mt32snd.h" +#include "mt32snd.h" #endif - +#if !defined(__GNUC__) +#pragma comment(lib, "winmm.lib") +#endif // !defined(__GNUC__) // ---- enable @@ -304,7 +314,7 @@ void dlgs_setcbitem(HWND hWnd, UINT uID, } lpcszStr = szString; } - nIndex = SendMessage(hItem, CB_ADDSTRING, 0, (LPARAM)lpcszStr); + nIndex = (int)SendMessage(hItem, CB_ADDSTRING, 0, (LPARAM)lpcszStr); if (nIndex >= 0) { SendMessage(hItem, CB_SETITEMDATA, @@ -324,7 +334,7 @@ void dlgs_setcbnumber(HWND hWnd, UINT uI for (i=0; i= 0) { SendMessage(hItem, CB_SETITEMDATA, @@ -340,7 +350,7 @@ void dlgs_setcbcur(HWND hWnd, UINT uID, int i; hItem = GetDlgItem(hWnd, uID); - nItems = SendMessage(hItem, CB_GETCOUNT, 0, 0); + nItems = (int)SendMessage(hItem, CB_GETCOUNT, 0, 0); for (i=0; i= 0) { - return SendMessage(hItem, CB_GETITEMDATA, (WPARAM)nPos, 0); + return (int)SendMessage(hItem, CB_GETITEMDATA, (WPARAM)nPos, 0); } return nDefault; }