M
mosfet
Hi,
would it be possible to return an anonymous enum ?
I would like to write something like :
// .NET enum styles : corresponds to public enum class View
struct View
{
enum
{
List = LVS_LIST,
Details = LVS_REPORT,
SmallIcon = LVS_SMALLICON,
LargeIcon = LVS_ICON,
};
};
class CxListCtrl : public CWindowImpl<CxListCtrl, CListViewCtrl>
{
public:
BEGIN_MSG_MAP(CxListCtrl)
END_MSG_MAP()
void set_View(View view);
View get_View();
protected:
View m_propView;
};
CxListCtrl listctrl;
lisctr.set_View(View:
etails);
View view = lisctr.get_View();
would it be possible to return an anonymous enum ?
I would like to write something like :
// .NET enum styles : corresponds to public enum class View
struct View
{
enum
{
List = LVS_LIST,
Details = LVS_REPORT,
SmallIcon = LVS_SMALLICON,
LargeIcon = LVS_ICON,
};
};
class CxListCtrl : public CWindowImpl<CxListCtrl, CListViewCtrl>
{
public:
BEGIN_MSG_MAP(CxListCtrl)
END_MSG_MAP()
void set_View(View view);
View get_View();
protected:
View m_propView;
};
CxListCtrl listctrl;
lisctr.set_View(View:
View view = lisctr.get_View();