| | |
| | | listRules.ModifyStyle(LVS_SINGLESEL, LVS_REPORT); |
| | | listRules.SetRowHeigt(24); |
| | | |
| | | CRect rect; |
| | | listRules.GetClientRect(&rect); |
| | | |
| | | int unitSize = (rect.Width() - 5) / 7.5f; |
| | | |
| | | listRules.InsertColumn(0, _T("代码"), LVCFMT_LEFT, 50, 0); |
| | | listRules.InsertColumn(1, _T("买1量(手)"), LVCFMT_LEFT, 80, 1); |
| | | listRules.InsertColumn(2, _T("买1价"), LVCFMT_LEFT, 50, 2); |
| | | listRules.InsertColumn(3, _T("卖量(股)"), LVCFMT_LEFT,60, 3); |
| | | listRules.InsertColumn(4, _T("卖价类型"), LVCFMT_LEFT, 60, 4); |
| | | listRules.InsertColumn(5, _T("结束时间"), LVCFMT_LEFT, 60, 5); |
| | | listRules.InsertColumn(6, _T("状态"), LVCFMT_LEFT, 50, 6); |
| | | listRules.InsertColumn(0, _T("代码"), LVCFMT_LEFT, unitSize*1, 0); |
| | | listRules.InsertColumn(1, _T("买1量(手)"), LVCFMT_LEFT, unitSize * 1.1, 1); |
| | | listRules.InsertColumn(2, _T("买1价"), LVCFMT_LEFT, unitSize * 1, 2); |
| | | listRules.InsertColumn(3, _T("卖量(股)"), LVCFMT_LEFT, unitSize * 1.1, 3); |
| | | listRules.InsertColumn(4, _T("卖价类型"), LVCFMT_LEFT, unitSize * 1.2, 4); |
| | | listRules.InsertColumn(5, _T("结束时间"), LVCFMT_LEFT, unitSize * 1.3, 5); |
| | | listRules.InsertColumn(6, _T("状态"), LVCFMT_LEFT, unitSize * 0.8, 6); |
| | | // listRules.InsertColumn(7, _T("ID"), LVCFMT_LEFT, 50, 7); |
| | | // listRules.InsertColumn(8, _T("创建时间"), LVCFMT_LEFT, 50, 8); |
| | | listRules.AutoColumn(); |