Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fake HWND message loop in class Pin
Paul M Watt20-Feb-02 5:32
mentorPaul M Watt20-Feb-02 5:32 
GeneralCantaro sim -quabala ! Pin
Georg Haan20-Feb-02 4:32
Georg Haan20-Feb-02 4:32 
GeneralRe: PRAGMA PACK Pin
Ravi Bhavnani20-Feb-02 4:58
professionalRavi Bhavnani20-Feb-02 4:58 
General*** STUNNING NEW INFO *** Pin
Georg Haan20-Feb-02 5:06
Georg Haan20-Feb-02 5:06 
GeneralRe: *** STUNNING NEW INFO *** Pin
Ravi Bhavnani20-Feb-02 5:12
professionalRavi Bhavnani20-Feb-02 5:12 
Generalthanks -nt- Pin
Georg Haan20-Feb-02 5:23
Georg Haan20-Feb-02 5:23 
GeneralCannot debug with .Net visual studio. Pin
Stan Shannon20-Feb-02 4:21
Stan Shannon20-Feb-02 4:21 
GeneralCListView problems... Pin
funbag20-Feb-02 4:21
funbag20-Feb-02 4:21 
I'm trying to create a view class derived from CListView. It is created as the main view object of an MDI application, by the appwizard on project creation.

OnInitialUpdate() is where you place the code that initializes a view. My problem is that I can't seem to get the CListView to show the column headers. Can anyone see what I'm doing wrong? (Here's my OnInitialUpdateSmile | :)

void CMailBoxProtoView::OnInitialUpdate()
{
CListView::OnInitialUpdate();
int x;

// Get a reference to the list view's control
CListCtrl& listCtrl = this->GetListCtrl();

// Add the columns
listCtrl.InsertColumn(0, _T("From"), LVCFMT_LEFT);
listCtrl.InsertColumn(1, _T("Received"), LVCFMT_LEFT);
listCtrl.InsertColumn(2, _T("Subject"), LVCFMT_LEFT);
listCtrl.InsertColumn(3, _T("Size"), LVCFMT_LEFT);

// Set the column sizes
for(x = 0; x < 4; x++)
listCtrl.SetColumnWidth(x, LVSCW_AUTOSIZE_USEHEADER);

// Set the style of the list control
listCtrl.SetExtendedStyle(LVS_REPORT);

// This displays fine, but where's the headings?!
listCtrl.InsertItem(0, "Item0");
}

Many thanx,
funbag!

skydiving....if at first you don't succeed, you're fecked!
GeneralRe: CListView problems... Pin
Mazdak20-Feb-02 4:50
Mazdak20-Feb-02 4:50 
GeneralRe: CListView problems... Pin
funbag20-Feb-02 6:23
funbag20-Feb-02 6:23 
GeneralRe: CListView problems... Pin
Mazdak20-Feb-02 6:34
Mazdak20-Feb-02 6:34 
GeneralRe: CListView problems... Pin
funbag20-Feb-02 7:18
funbag20-Feb-02 7:18 
GeneralOnCmdMsg Question Pin
yellowine20-Feb-02 4:15
yellowine20-Feb-02 4:15 
GeneralRe: OnCmdMsg Question Pin
Ravi Bhavnani20-Feb-02 4:28
professionalRavi Bhavnani20-Feb-02 4:28 
GeneralRe: OnCmdMsg Question Pin
yellowine20-Feb-02 4:50
yellowine20-Feb-02 4:50 
GeneralRe: OnCmdMsg Question Pin
Ravi Bhavnani20-Feb-02 4:55
professionalRavi Bhavnani20-Feb-02 4:55 
GeneralRe: OnCmdMsg Question Pin
yellowine20-Feb-02 5:11
yellowine20-Feb-02 5:11 
GeneralRe: OnCmdMsg Question Pin
Steen Krogsgaard21-Feb-02 5:11
Steen Krogsgaard21-Feb-02 5:11 
GeneralRe: OnCmdMsg Question Pin
yellowine21-Feb-02 6:08
yellowine21-Feb-02 6:08 
GeneralRe: OnCmdMsg Question Pin
Steen Krogsgaard22-Feb-02 0:23
Steen Krogsgaard22-Feb-02 0:23 
GeneralA Test Program? Pin
yellowine22-Feb-02 3:15
yellowine22-Feb-02 3:15 
GeneralRe: A Test Program? Pin
Steen Krogsgaard22-Feb-02 5:19
Steen Krogsgaard22-Feb-02 5:19 
GeneralRe: A Test Program? Pin
yellowine22-Feb-02 6:04
yellowine22-Feb-02 6:04 
QuestionVC7 support for 64-bit targets? Pin
Ravi Bhavnani20-Feb-02 4:10
professionalRavi Bhavnani20-Feb-02 4:10 
AnswerVC6 & Intel C++ 64bit compiler Pin
Ravi Bhavnani20-Feb-02 4:53
professionalRavi Bhavnani20-Feb-02 4:53 

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.