// start at WM_USER + 20 just in case for whatever reason we ever get the various dialog manager messages (see also http://blogs.msdn.com/b/oldnewthing/archive/2003/10/21/55384.aspx)
// each of these returns nothing unless otherwise indicated
enum{
// wParam - one of the type constants
// lParam - column name as a Unicode string
tableAddColumn=WM_USER+20,
// wParam - 0
// lParam - pointer to intptr_t containing new count
tableSetRowCount,
};
enum{
tableColumnText,
tableColumnImage,
tableColumnCheckbox,
nTableColumnTypes,
};
// notification codes
// note that these are positive; see http://blogs.msdn.com/b/oldnewthing/archive/2009/08/21/9877791.aspx
// each of these is of type tableNM
// all fields except data will always be set
enum{
// data parameter is always 0
// for tableColumnText return should be WCHAR *
// for tableColumnImage return should be HBITMAP
// for tableColumnCheckbox return is nonzero for checked, zero for unchecked
tableNotificationGetCellData,
// data parameter is pointer, same as tableNotificationGetCellData