2018-06-09 23:49:44 -05:00
|
|
|
// 10 june 2018
|
|
|
|
|
|
|
|
// table.cpp
|
|
|
|
#define uiprivNumLVN_GETDISPINFOSkip 3
|
|
|
|
struct uiTableModel {
|
|
|
|
uiTableModelHandler *mh;
|
|
|
|
std::vector<uiTable *> *tables;
|
|
|
|
};
|
|
|
|
typedef struct uiprivTableColumnParams uiprivTableColumnParams;
|
|
|
|
struct uiprivTableColumnParams {
|
|
|
|
int textModelColumn;
|
|
|
|
int textEditableColumn;
|
|
|
|
uiTableTextColumnOptionalParams textParams;
|
|
|
|
|
|
|
|
int imageModelColumn;
|
|
|
|
|
|
|
|
int checkboxModelColumn;
|
|
|
|
int checkboxEditableColumn;
|
|
|
|
|
|
|
|
int progressBarModelColumn;
|
|
|
|
|
|
|
|
int buttonModelColumn;
|
|
|
|
int buttonClickableModelColumn;
|
|
|
|
};
|
|
|
|
struct uiTable {
|
|
|
|
uiWindowsControl c;
|
|
|
|
uiTableModel *model;
|
|
|
|
HWND hwnd;
|
|
|
|
std::vector<uiprivTableColumnParams *> *columns;
|
|
|
|
WPARAM nColumns;
|
|
|
|
int backgroundColumn;
|
2018-06-15 22:00:39 -05:00
|
|
|
// TODO make sure replacing images while selected in the listview is even allowed
|
|
|
|
HIMAGELIST imagelist;
|
2018-06-16 17:06:44 -05:00
|
|
|
LONG indeterminatePosition;
|
2018-06-09 23:49:44 -05:00
|
|
|
};
|
2018-06-13 20:06:08 -05:00
|
|
|
|
2018-06-16 11:33:16 -05:00
|
|
|
// tabledispinfo.cpp
|
|
|
|
extern HRESULT uiprivTableHandleLVN_GETDISPINFO(uiTable *t, NMLVDISPINFOW *nm, LRESULT *lResult);
|
2018-06-15 09:04:32 -05:00
|
|
|
|
|
|
|
// tabledraw.cpp
|
|
|
|
extern HRESULT uiprivTableHandleNM_CUSTOMDRAW(uiTable *t, NMLVCUSTOMDRAW *nm, LRESULT *lResult);
|
2018-06-15 21:50:19 -05:00
|
|
|
extern HRESULT uiprivUpdateImageListSize(uiTable *t);
|