Click here to Skip to main content
16,011,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File i/o Pin
Christian Graus8-Feb-02 13:43
protectorChristian Graus8-Feb-02 13:43 
GeneralRe: File i/o Pin
Tim Smith8-Feb-02 17:42
Tim Smith8-Feb-02 17:42 
GeneralRe: File i/o Pin
Christian Graus8-Feb-02 17:49
protectorChristian Graus8-Feb-02 17:49 
GeneralRe: File i/o Pin
Sprudling8-Feb-02 22:31
Sprudling8-Feb-02 22:31 
GeneralRe: File i/o Pin
Christian Graus8-Feb-02 22:42
protectorChristian Graus8-Feb-02 22:42 
GeneralRe: File i/o Pin
8-Feb-02 10:53
suss8-Feb-02 10:53 
GeneralRe: File i/o Pin
Nick Parker28-Feb-02 17:58
protectorNick Parker28-Feb-02 17:58 
GeneralCListCtrl into CListView Pin
8-Feb-02 8:53
suss8-Feb-02 8:53 
i don't understand why the insertitem function is good and the text doesn't appear!!

void CMyListView::OnInitialUpdate()
{
CListView::OnInitialUpdate();

ModifyStyle(0, LVS_REPORT,0);

// this code only works for a report-mode list view
//ASSERT(GetStyle() & LVS_REPORT);


// Gain a reference to the list control itself
CListCtrl& theCtrl = GetListCtrl();

// Insert a column. This override is the most convenient.
theCtrl.InsertColumn(0, _T("Names"), LVCFMT_CENTER);

// The other InsertColumn() override requires an initialized
// LVCOLUMN structure.
LVCOLUMN col;
col.mask = LVCF_FMT | LVCF_TEXT;
col.pszText = _T("Version");
col.fmt = LVCFMT_CENTER;
theCtrl.InsertColumn(1, &col);
theCtrl.InsertColumn(2,"Description",LVCFMT_CENTER);

// Set reasonable widths for our columns
theCtrl.SetColumnWidth(0, 200);
theCtrl.SetColumnWidth(1, 100);
theCtrl.SetColumnWidth(2, 100);

GetListCtrl().InsertItem(0, "First row");
}

GetListCtrl().InsertItem(0, "First row") is good but the text doesn't appear!!
Help me, please

PS: LVS_TYPEMASK == LVS_LIST only Michael Dunn. It is not that


GeneralRe: CListCtrl into CListView Pin
8-Feb-02 10:11
suss8-Feb-02 10:11 
GeneralGDI+ Pin
Mazdak8-Feb-02 8:36
Mazdak8-Feb-02 8:36 
GeneralRe: GDI+ Pin
Christian Graus8-Feb-02 9:00
protectorChristian Graus8-Feb-02 9:00 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 9:29
Mazdak8-Feb-02 9:29 
GeneralRe: GDI+ Pin
Christian Graus8-Feb-02 9:37
protectorChristian Graus8-Feb-02 9:37 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 10:10
Mazdak8-Feb-02 10:10 
GeneralRe: GDI+ Pin
Christian Graus8-Feb-02 10:21
protectorChristian Graus8-Feb-02 10:21 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 10:25
Mazdak8-Feb-02 10:25 
GeneralRe: GDI+ Pin
Christian Graus8-Feb-02 10:38
protectorChristian Graus8-Feb-02 10:38 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 10:57
Mazdak8-Feb-02 10:57 
GeneralRe: GDI+ Pin
Christian Graus8-Feb-02 11:03
protectorChristian Graus8-Feb-02 11:03 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 11:35
Mazdak8-Feb-02 11:35 
GeneralRe: GDI+ Pin
Jay Beckert8-Feb-02 13:18
Jay Beckert8-Feb-02 13:18 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 13:39
Mazdak8-Feb-02 13:39 
GeneralRe: GDI+ Pin
Jay Beckert8-Feb-02 14:13
Jay Beckert8-Feb-02 14:13 
GeneralRe: GDI+ Pin
Mazdak8-Feb-02 19:19
Mazdak8-Feb-02 19:19 
GeneralPocket PC 2002 SDK Pin
8-Feb-02 7:55
suss8-Feb-02 7:55 

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.