Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl & theCtrl = GetListCtrl Pin
David Crow16-Dec-10 2:20
David Crow16-Dec-10 2:20 
GeneralRe: CListCtrl & theCtrl = GetListCtrl Pin
cy163@hotmail.com17-Dec-10 0:15
cy163@hotmail.com17-Dec-10 0:15 
GeneralRe: CListCtrl & theCtrl = GetListCtrl Pin
David Crow17-Dec-10 5:01
David Crow17-Dec-10 5:01 
GeneralRe: CListCtrl & theCtrl = GetListCtrl Pin
cy163@hotmail.com18-Dec-10 2:05
cy163@hotmail.com18-Dec-10 2:05 
AnswerRe: CListCtrl & theCtrl = GetListCtrl Pin
David Crow19-Dec-10 14:09
David Crow19-Dec-10 14:09 
QuestionClass CxxxxView:CFormView Pin
cy163@hotmail.com13-Dec-10 4:00
cy163@hotmail.com13-Dec-10 4:00 
AnswerRe: Class CxxxxView:CFormView Pin
«_Superman_»13-Dec-10 7:20
professional«_Superman_»13-Dec-10 7:20 
GeneralRe: Class CxxxxView:CFormView Pin
cy163@hotmail.com13-Dec-10 15:42
cy163@hotmail.com13-Dec-10 15:42 
Thanks you superman for your reply.

Another question concerns the following code snippet. I wonder why


CListView::OnInitialUpdate();


can be called directly, without declaring an instance of the class CListView.
void CMyListView::OnInitialUpdate()
{
   CListView::OnInitialUpdate();

   // 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("Player Name"), LVCFMT_LEFT);

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

   // Set reasonable widths for our columns

GeneralRe: Class CxxxxView:CFormView Pin
«_Superman_»13-Dec-10 16:00
professional«_Superman_»13-Dec-10 16:00 
GeneralRe: Class CxxxxView:CFormView Pin
yu-jian14-Dec-10 17:56
yu-jian14-Dec-10 17:56 
GeneralRe: Class CxxxxView:CFormView Pin
cy163@hotmail.com15-Dec-10 19:51
cy163@hotmail.com15-Dec-10 19:51 
Questionhow to Read/Write to a file a structure wich contains Cstring ? Pin
timbk13-Dec-10 2:30
timbk13-Dec-10 2:30 
AnswerRe: how to Read/Write to a file a structure wich contains Cstring ? Pin
Cedric Moonen13-Dec-10 2:43
Cedric Moonen13-Dec-10 2:43 
GeneralRe: how to Read/Write to a file a structure wich contains Cstring ? Pin
timbk13-Dec-10 3:21
timbk13-Dec-10 3:21 
GeneralRe: how to Read/Write to a file a structure wich contains Cstring ? Pin
Cedric Moonen13-Dec-10 3:25
Cedric Moonen13-Dec-10 3:25 
AnswerRe: how to Read/Write to a file a structure wich contains Cstring ? Pin
Richard MacCutchan13-Dec-10 7:19
mveRichard MacCutchan13-Dec-10 7:19 
QuestionSHFileOperation in win XP? Pin
zon_cpp12-Dec-10 19:23
zon_cpp12-Dec-10 19:23 
AnswerRe: SHFileOperation in win XP? Pin
CPallini12-Dec-10 20:59
mveCPallini12-Dec-10 20:59 
GeneralRe: SHFileOperation in win XP? Pin
zon_cpp12-Dec-10 22:24
zon_cpp12-Dec-10 22:24 
Questionsave image with annotation Pin
raju_shiva12-Dec-10 18:53
raju_shiva12-Dec-10 18:53 
AnswerRe: save image with annotation Pin
Hadi Dayvary13-Dec-10 7:02
professionalHadi Dayvary13-Dec-10 7:02 
QuestionException Pin
MsmVc12-Dec-10 18:38
MsmVc12-Dec-10 18:38 
QuestionRe: Exception Pin
CPallini12-Dec-10 21:08
mveCPallini12-Dec-10 21:08 
AnswerRe: Exception Pin
MsmVc12-Dec-10 22:22
MsmVc12-Dec-10 22:22 
QuestionRe: Exception Pin
CPallini12-Dec-10 22:30
mveCPallini12-Dec-10 22:30 

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.