资源简介
改变list control满足一定条件的某一行的背景颜色的习例。
代码片段和文件信息
// listcontrol.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “listcontrol.h“
#include “MainFrm.h“
#include “listcontrolDoc.h“
#include “listcontrolView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CListcontrolApp
BEGIN_MESSAGE_MAP(CListcontrolApp CWinApp)
//{{AFX_MSG_MAP(CListcontrolApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CListcontrolApp construction
CListcontrolApp::CListcontrolApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CListcontrolApp object
CListcontrolApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CListcontrolApp initialization
BOOL CListcontrolApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CListcontrolDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CListcontrolView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-07-15 16:14 listcontrol\
目录 0 2013-07-15 16:14 listcontrol\Debug\
文件 118886 2013-07-15 16:51 listcontrol\Debug\listcontrol.exe
文件 359096 2013-07-15 16:51 listcontrol\Debug\listcontrol.ilk
文件 23482 2013-07-15 16:29 listcontrol\Debug\listcontrol.obj
文件 5498060 2013-07-15 16:21 listcontrol\Debug\listcontrol.pch
文件 492544 2013-07-15 16:51 listcontrol\Debug\listcontrol.pdb
文件 7624 2013-07-15 16:35 listcontrol\Debug\listcontrol.res
文件 15236 2013-07-15 16:21 listcontrol\Debug\listcontrolDoc.obj
文件 20250 2013-07-15 16:21 listcontrol\Debug\listcontrolView.obj
文件 23313 2013-07-15 16:42 listcontrol\Debug\MainFrm.obj
文件 105933 2013-07-15 16:21 listcontrol\Debug\StdAfx.obj
文件 18537 2013-07-15 16:51 listcontrol\Debug\testdlg.obj
文件 214016 2013-07-15 16:51 listcontrol\Debug\vc60.idb
文件 364544 2013-07-15 16:51 listcontrol\Debug\vc60.pdb
文件 44932 2013-07-15 16:35 listcontrol\listcontrol.aps
文件 2782 2013-07-15 16:58 listcontrol\listcontrol.clw
文件 4299 2013-07-15 16:14 listcontrol\listcontrol.cpp
文件 4786 2013-07-15 16:52 listcontrol\listcontrol.dsp
文件 547 2013-07-15 16:14 listcontrol\listcontrol.dsw
文件 1411 2013-07-15 16:14 listcontrol\listcontrol.h
文件 58368 2013-07-15 17:08 listcontrol\listcontrol.ncb
文件 49664 2013-07-15 17:08 listcontrol\listcontrol.opt
文件 1237 2013-07-15 16:51 listcontrol\listcontrol.plg
文件 12348 2013-07-15 16:35 listcontrol\listcontrol.rc
文件 1842 2013-07-15 16:14 listcontrol\listcontrolDoc.cpp
文件 1530 2013-07-15 16:14 listcontrol\listcontrolDoc.h
文件 2729 2013-07-15 16:14 listcontrol\listcontrolView.cpp
文件 1971 2013-07-15 16:14 listcontrol\listcontrolView.h
文件 2563 2013-07-15 16:29 listcontrol\MainFrm.cpp
文件 1474 2013-07-15 16:25 listcontrol\MainFrm.h
............此处省略12个文件信息
相关资源
- VC6.0将ListCtrl中数据写入到Excel
- MFC ListControl使用
- MFC中ListCtrl添加图标,更改图标
- BCGControlBar Pro 22.1 完美破解版V4
- MFC树形控件CTreeCtrl显示文件路径及文
- MFC TAB control
- PictureControl
- High-speed Charting Control--MFC
- MFC Tab Control 模态框 非模态框
- TeeChart Pro Activex control v8 源代码
- TeeChart Pro Activex Control v2018
- MFC通过OpenCV 显示到Picture control
- ActiveX controls inside out 控制元件徹底研
- MFC list control 内嵌按钮以及样式
- 基于MFC的多线程编程以及在Picture Co
- 可以改变ListCtr控件中的显示颜色和背
- MFC ListCtrl控件上增加Comb以及可编写子
- 在PictureControl控件上绘图并保存
- MFC 列表控件(ListControl)扩展类集合
- MFC读取文件夹内容名称 时间 类型
- vs2015+opencv3.3+mfc读取摄像头显示在图片
- High-speed Charting Control Demo
- MFC界面美化库BCGControlbar16.1
- BCGControlBar MFC Pro 28.0完整版
- BCGControlBar Professional v.22.1 Retail,Ful
-
在ob
jectARX(VC)中使用MFC-可停靠窗 - opmapcontrol 一个开源的基于qt的2d地图库
- mfc下导出listctrl数据到excel表格
- Microsoft Communications Control,version 6.0
- MFC Tabcontrol 标签控件美化
评论
共有 条评论