Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I have a very stupid question... Pin
Phil Boyd21-Mar-03 8:12
Phil Boyd21-Mar-03 8:12 
GeneralRe: I have a very stupid question... Pin
K. Shaffer21-Mar-03 8:21
K. Shaffer21-Mar-03 8:21 
GeneralRe: I have a very stupid question... Pin
John R. Shaw21-Mar-03 8:21
John R. Shaw21-Mar-03 8:21 
GeneralCOM-port for multiple applications Pin
Member 13901621-Mar-03 7:30
Member 13901621-Mar-03 7:30 
GeneralRe: COM-port for multiple applications Pin
John R. Shaw21-Mar-03 8:49
John R. Shaw21-Mar-03 8:49 
GeneralRe: COM-port for multiple applications Pin
Scorp1us21-Mar-03 10:32
Scorp1us21-Mar-03 10:32 
GeneralRe: COM-port for multiple applications Pin
CvdWalt21-Mar-03 11:30
CvdWalt21-Mar-03 11:30 
GeneralCListCtrl problem Pin
MemLeak21-Mar-03 7:16
MemLeak21-Mar-03 7:16 
Hi!

I have a database project using MFC and ODBC. When we create a ODBC project, we obtain a CMyRecordView class derived from CRecordView. This class use a dialog template to represent data.

I want to use a CListCtrl to represent my data.

So in my class CMyRecordView.h I have declared

CListCtrl m_wndListCtrl;

In my CMyRecordView.cpp :

DDX_Control(pDX, IDC_LISTCTRL_VIEWDATA, m_wndListCtrl);

and :

void CDataBaseManagerView::OnInitialUpdate()
{
m_wndListCtrl.InsertColumn(0,_T("Item"),LVCFMT_LEFT,100);
m_wndListCtrl.InsertColumn(1, _T("Value"),LVCFMT_LEFT, 100);
m_wndListCtrl.InsertColumn(2, _T("Time"), LVCFMT_LEFT, 100);

m_pSet = &GetDocument()->m_DataBaseManagerSet;
CRecordView::OnInitialUpdate();
}

In my dialog, my control style is set to VS_REPORT

The problem is that I dont see my columns.

I see a grey bar, but I dont see any text and I dont see any line break.

thanks for helping...Smile | :)


Everything's beautiful if you look at it long enough...
GeneralRe: CListCtrl problem Pin
Amit Dey21-Mar-03 12:34
Amit Dey21-Mar-03 12:34 
GeneralRe: CListCtrl problem Pin
Anonymous22-Mar-03 13:13
Anonymous22-Mar-03 13:13 
GeneralRe: CListCtrl problem Pin
MemLeak24-Mar-03 7:48
MemLeak24-Mar-03 7:48 
Generalusing ActiveX CWebControl2 control. Pin
Maximilien21-Mar-03 7:15
Maximilien21-Mar-03 7:15 
GeneralRe: using ActiveX CWebControl2 control. Pin
Anonymous22-Mar-03 13:18
Anonymous22-Mar-03 13:18 
Generallog scale question Pin
pankajdaga21-Mar-03 7:07
pankajdaga21-Mar-03 7:07 
GeneralRe: log scale question Pin
jmkhael21-Mar-03 7:27
jmkhael21-Mar-03 7:27 
GeneralRe: log scale question Pin
Ravi Bhavnani21-Mar-03 7:30
professionalRavi Bhavnani21-Mar-03 7:30 
GeneralCArchive serialisation and operators < > Pin
Kuniva21-Mar-03 6:37
Kuniva21-Mar-03 6:37 
GeneralRe: CArchive serialisation and operators < > Pin
jmkhael21-Mar-03 7:02
jmkhael21-Mar-03 7:02 
GeneralRe: CArchive serialisation and operators < > Pin
Kuniva21-Mar-03 7:16
Kuniva21-Mar-03 7:16 
GeneralRe: CArchive serialisation and operators < > Pin
jmkhael21-Mar-03 7:20
jmkhael21-Mar-03 7:20 
GeneralRe: CArchive serialisation and operators < > Pin
Ravi Bhavnani21-Mar-03 7:33
professionalRavi Bhavnani21-Mar-03 7:33 
GeneralRe: CArchive serialisation and operators < > Pin
Kuniva21-Mar-03 9:06
Kuniva21-Mar-03 9:06 
GeneralRe: CArchive serialisation and operators < > Pin
Ravi Bhavnani21-Mar-03 10:21
professionalRavi Bhavnani21-Mar-03 10:21 
GeneralRe: CArchive serialisation and operators < > Pin
Ryan Binns21-Mar-03 17:41
Ryan Binns21-Mar-03 17:41 
GeneralFinding Files Pin
Tom Wright21-Mar-03 6:18
Tom Wright21-Mar-03 6:18 

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.