ConditionListCtrl.cpp in TestMyCanEditList.ra


an editing ListCtrl, cells can be chosen or a list dialog box. Selected here, cl...Original Link
    Sponsored links

			
// ConditionListCtrl.cpp : implementation file
//

#include "stdafx.h"
#include "TestMyCanEditList.h"
#include "ConditionListCtrl.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CConditionListCtrl

CConditionListCtrl::CConditionListCtrl()
{
}

CConditionListCtrl::~CConditionListCtrl()
{
}


BEGIN_MESSAGE_MAP(CConditionListCtrl, CMyCanEditListCtrl)
	//{{AFX_MSG_MAP(CConditionListCtrl)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConditionListCtrl message handlers

void CConditionListCtrl::InitColumn()
{
	for(int i=this->GetHeaderCtrl()->GetItemCount()-1;i>=0;i--)
	{
		this->DeleteColumn(i);
	}
    //因为ListCtrl的第一列始终是LVCFMT_LEFT的
	//为了使左括号列的标题达到LVCFMT_CENTER的效果,先插入一辅助列,再删除该列
	InsertColumn(0,"test",LVCFMT_LEFT,70);
	InsertColumn(1,"序号",LVCFMT_RIGHT,70);
	InsertColumn(2,"姓名",LVCFMT_LEFT,100);
	InsertColumn(3,"性别",LVCFMT_CENTER,80);
	InsertColumn(4,"工作单位",LVCFMT_LEFT,100);
	InsertColumn(5,"联系电话",LVCFMT_LEFT,100);
	InsertColumn(6,"备注",LVCFMT_LEFT,80);
	DeleteColumn(0);////

	m_arrColType			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 TestMyCanEditList.aps28.22 kB15-07-06 12:30
 TestMyCanEditList.opt107.00 kB15-07-06 12:51
 ConditionListCtrl.cpp2.73 kB15-07-06 12:51
 ConditionListCtrl.h1.39 kB15-07-06 12:49
 TestMyCanEditList.plg1.27 kB15-07-06 12:51
 TestMyCanEditList.clw2.55 kB15-07-06 12:40
 ReadMe.txt4.47 kB15-07-06 12:21
 TestMyCanEditList.h1.44 kB15-07-06 12:21
 TestMyCanEditList.cpp4.30 kB15-07-06 12:21
 StdAfx.h1.03 kB15-07-06 12:21
 StdAfx.cpp219.00 B15-07-06 12:21
 MainFrm.h1.54 kB15-07-06 12:21
 MainFrm.cpp2.46 kB15-07-06 12:21
 TestMyCanEditListDoc.h1.56 kB15-07-06 12:21
 TestMyCanEditListDoc.cpp1.92 kB15-07-06 12:21
 TestMyCanEditListView.h2.05 kB15-07-06 12:40
 TestMyCanEditList.dsp5.09 kB15-07-06 12:31
 TestMyCanEditList.rc2409.00 B15-07-06 12:21
 TestMyCanEditListDoc.ico1.05 kB15-07-06 12:21
 TestMyCanEditList.ico1.05 kB15-07-06 12:21
 Toolbar.bmp1.05 kB15-07-06 12:21
 <res>0.00 B15-07-06 12:21
 Resource.h505.00 B15-07-06 12:21
 TestMyCanEditList.rc10.46 kB15-07-06 12:21
 TestMyCanEditList.exe160.06 kB15-07-06 12:51
 TestMyCanEditListView.cpp3.92 kB15-07-06 12:45
 TestMyCanEditList.dsw557.00 B15-07-06 12:21
 TestMyCanEditList.ncb73.00 kB15-07-06 12:51
 MyListCtrl.cpp6.89 kB26-05-06 09:11
 MyListCtrl.h1.89 kB26-05-06 09:09
 MyCanEditListCtrl.cpp29.96 kB15-07-06 12:27
 MyCanEditListCtrl.h7.17 kB15-07-06 12:27
 <TestMyCanEditList>0.00 B15-07-06 12:21
...

Related Items

    Sponsored links