#pragma once
#include "../../poost/use.hpp"
#include "../cast/integral_cast.hpp"
namespace tomato {
#ifndef _WIN32_WCE
inline BOOL set_menu_default_item(HMENU hMenu, UINT uItem = integral_cast<UINT>(-1), BOOL bByPosition = FALSE)
{
return ::SetMenuDefaultItem(hMenu, uItem, integral_cast<UINT>(bByPosition));
}
#else
inline BOOL set_menu_default_item(HMENU hMenu, UINT uItem = integral_cast<UINT>(-1), BOOL bByPosition = FALSE)
{
poost::use(hMenu, uItem, bByPosition);
// what can I do :^)
return TRUE;
}
#endif // !_WIN32_WCE
} // namespace tomato