List control in FormView
-
Hi All I am using list control(report style) in formview. I am trying to insert the columns in OnCreate (or) Show Window Function. But Neither Works .. Any Way to Solve it. Regards Gany
-
m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES); CRect rect; m_listctrl.GetClientRect(&rect); int ctl=rect.Width()/10; m_listctrl.InsertColumn(0,"ORDERNO",LVCFMT_LEFT,ctl); m_listctrl.InsertColumn(1,"MOLDNO",LVCFMT_LEFT,ctl); m_listctrl.InsertColumn(2,"OD TYPE",LVCFMT_LEFT,ctl);
-
m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES); CRect rect; m_listctrl.GetClientRect(&rect); int ctl=rect.Width()/10; m_listctrl.InsertColumn(0,"ORDERNO",LVCFMT_LEFT,ctl); m_listctrl.InsertColumn(1,"MOLDNO",LVCFMT_LEFT,ctl); m_listctrl.InsertColumn(2,"OD TYPE",LVCFMT_LEFT,ctl);
-
Hi While Debugging i m gettin error in m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES); code itself