MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Initialize

Method Initialize

editor/ScriptSyncDialog.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102#define COLUMN_STATE_SIZE 0.49f
103
104void CMyListCtrl::Initialize(void) {
105 ModifyStyleEx(0, LVS_EX_FULLROWSELECT);
106
107 RECT rect;
108 GetWindowRect(&rect);
109 int width = rect.right - rect.left;
110 int ret;
111
112 ret = InsertColumn(COLUMN_NAME, "Name", LVCFMT_LEFT, (int)(width * COLUMN_NAME_SIZE));
113 ret = InsertColumn(COLUMN_STATE, "State", LVCFMT_LEFT, (int)(width * COLUMN_STATE_SIZE));
114}
115
116int CMyListCtrl::AddItem(char *name, int num) {
117 int item_count = GetItemCount();

Callers 1

OnInitDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected