Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to set item for a listbox Pin
liquidsnake18320-Mar-03 11:22
liquidsnake18320-Mar-03 11:22 
AnswerRe: how to set item for a listbox Pin
valikac20-Mar-03 12:16
valikac20-Mar-03 12:16 
AnswerRe: how to set item for a listbox Pin
Dave Bryant20-Mar-03 12:20
Dave Bryant20-Mar-03 12:20 
GeneralPassing arrays to functions(Simple question)! Pin
Paddy20-Mar-03 11:13
Paddy20-Mar-03 11:13 
GeneralRe: Passing arrays to functions(Simple question)! Pin
João Paulo Figueira20-Mar-03 11:25
professionalJoão Paulo Figueira20-Mar-03 11:25 
GeneralRe: Passing arrays to functions(Simple question)! Pin
Paddy20-Mar-03 11:58
Paddy20-Mar-03 11:58 
GeneralUnexpected Delay in TCP Streams Pin
SanShou20-Mar-03 10:18
SanShou20-Mar-03 10:18 
GeneralODBC and CListCtrl Pin
Anonymous20-Mar-03 10:14
Anonymous20-Mar-03 10:14 
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...

QuestionCreate Report in Access? Pin
Aaron Schaefer20-Mar-03 9:59
Aaron Schaefer20-Mar-03 9:59 
GeneralEndDialog() for modal Pin
ns20-Mar-03 9:09
ns20-Mar-03 9:09 
GeneralRe: EndDialog() for modal Pin
Alvaro Mendez20-Mar-03 9:31
Alvaro Mendez20-Mar-03 9:31 
GeneralRe: EndDialog() for modal Pin
ns20-Mar-03 9:34
ns20-Mar-03 9:34 
GeneralRe: EndDialog() for modal Pin
Neville Franks20-Mar-03 9:37
Neville Franks20-Mar-03 9:37 
Generalsorry for the confusion Pin
ns20-Mar-03 9:42
ns20-Mar-03 9:42 
QuestionHow to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 7:43
professionalJoan M20-Mar-03 7:43 
AnswerRe: How to avoid this? (HTMLView and Handle leaks) Pin
Stephane Rodriguez.20-Mar-03 8:19
Stephane Rodriguez.20-Mar-03 8:19 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 8:44
professionalJoan M20-Mar-03 8:44 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Stephane Rodriguez.20-Mar-03 9:19
Stephane Rodriguez.20-Mar-03 9:19 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 20:35
professionalJoan M20-Mar-03 20:35 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Stephane Rodriguez.20-Mar-03 21:17
Stephane Rodriguez.20-Mar-03 21:17 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:09
professionalJoan M20-Mar-03 22:09 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Stephane Rodriguez.20-Mar-03 22:31
Stephane Rodriguez.20-Mar-03 22:31 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:53
professionalJoan M20-Mar-03 22:53 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M20-Mar-03 22:59
professionalJoan M20-Mar-03 22:59 
GeneralRe: How to avoid this? (HTMLView and Handle leaks) Pin
Joan M21-Mar-03 4:05
professionalJoan M21-Mar-03 4:05 

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.