Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Generate series Pin
MsmVc21-Apr-10 22:01
MsmVc21-Apr-10 22:01 
GeneralRe: Generate series Pin
Chris Losinger22-Apr-10 1:28
professionalChris Losinger22-Apr-10 1:28 
QuestionSDI List Control example Pin
hellogany21-Apr-10 21:00
hellogany21-Apr-10 21:00 
AnswerRe: SDI List Control example Pin
Richard MacCutchan21-Apr-10 21:03
mveRichard MacCutchan21-Apr-10 21:03 
GeneralRe: SDI List Control example Pin
hellogany21-Apr-10 21:18
hellogany21-Apr-10 21:18 
GeneralRe: SDI List Control example Pin
Richard MacCutchan21-Apr-10 21:48
mveRichard MacCutchan21-Apr-10 21:48 
GeneralRe: SDI List Control example Pin
Cedric Moonen21-Apr-10 21:58
Cedric Moonen21-Apr-10 21:58 
GeneralRe: SDI List Control example Pin
hellogany21-Apr-10 22:59
hellogany21-Apr-10 22:59 
Hi Sorry for not explaining the problem..


Actually i m havin an application in windows explorer view.

Left view contains a tree view with various items,

Upon clicking an item in treeview , a form view appears in right window.

In one of the form view i m using an list control ..

I m trying the insert the column name in OnshowWindow or in Oncreate() windows.

But both of them throws assertion error.

Kindly go through the below code..

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.InsertColumn(3,"ESTAB DATE",LVCFMT_LEFT,ctl);


Is ther property of the form view or the list control to be changed??

Any solutions will be highly appreciated.
GeneralRe: SDI List Control example Pin
Richard MacCutchan22-Apr-10 0:43
mveRichard MacCutchan22-Apr-10 0:43 
GeneralRe: SDI List Control example Pin
hellogany22-Apr-10 17:34
hellogany22-Apr-10 17:34 
GeneralRe: SDI List Control example Pin
Richard MacCutchan22-Apr-10 23:44
mveRichard MacCutchan22-Apr-10 23:44 
GeneralRe: SDI List Control example Pin
hellogany23-Apr-10 0:47
hellogany23-Apr-10 0:47 
GeneralRe: SDI List Control example Pin
Richard MacCutchan23-Apr-10 1:27
mveRichard MacCutchan23-Apr-10 1:27 
GeneralRe: SDI List Control example Pin
hellogany23-Apr-10 16:51
hellogany23-Apr-10 16:51 
GeneralRe: SDI List Control example Pin
Richard MacCutchan23-Apr-10 21:24
mveRichard MacCutchan23-Apr-10 21:24 
GeneralRe: SDI List Control example Pin
hellogany23-Apr-10 23:33
hellogany23-Apr-10 23:33 
Questionmarquee progress bar Pin
john563221-Apr-10 19:42
john563221-Apr-10 19:42 
AnswerRe: marquee progress bar Pin
Cool_Dev21-Apr-10 19:47
Cool_Dev21-Apr-10 19:47 
GeneralRe: marquee progress bar Pin
john563221-Apr-10 21:44
john563221-Apr-10 21:44 
AnswerRe: marquee progress bar Pin
@Intersect☺™21-Apr-10 20:17
professional@Intersect☺™21-Apr-10 20:17 
QuestionHow to receive HTTP request? [modified] Pin
suzuuu21-Apr-10 19:22
suzuuu21-Apr-10 19:22 
AnswerRe: How to receive HTTP request? Pin
@Intersect☺™21-Apr-10 20:23
professional@Intersect☺™21-Apr-10 20:23 
GeneralRe: How to receive HTTP request? Pin
suzuuu21-Apr-10 20:52
suzuuu21-Apr-10 20:52 
QuestionRe: How to receive HTTP request? Pin
MANISH RASTOGI21-Apr-10 20:53
MANISH RASTOGI21-Apr-10 20:53 
AnswerRe: How to receive HTTP request? Pin
suzuuu21-Apr-10 20:56
suzuuu21-Apr-10 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.