资源简介
本资源是自画clistbox控件,实现在每行的左面显示图标右面显示文字,类似qq的好友列表
代码片段和文件信息
// IconLBDemo.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “IconLBDemo.h“
#include “IconLBDemoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIconLBDemoApp
BEGIN_MESSAGE_MAP(CIconLBDemoApp CWinApp)
//{{AFX_MSG_MAP(CIconLBDemoApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIconLBDemoApp construction
CIconLBDemoApp::CIconLBDemoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CIconLBDemoApp object
CIconLBDemoApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CIconLBDemoApp initialization
BOOL CIconLBDemoApp::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
CIconLBDemoDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2001-06-13 12:38 IconLBDemo\
文件 1748 2001-06-13 17:47 IconLBDemo\IconLBDemo.clw
文件 3651 2001-06-13 12:39 IconLBDemo\ReadMe.txt
文件 1368 2001-06-13 12:39 IconLBDemo\IconLBDemo.h
文件 2119 2001-06-13 12:39 IconLBDemo\IconLBDemo.cpp
文件 1054 2001-06-13 12:39 IconLBDemo\StdAfx.h
文件 212 2001-06-13 12:39 IconLBDemo\StdAfx.cpp
目录 0 2001-06-13 12:39 IconLBDemo\res\
文件 402 2001-06-13 12:39 IconLBDemo\res\IconLBDemo.rc2
文件 1078 2001-06-13 12:39 IconLBDemo\res\IconLBDemo.ico
文件 2518 2001-06-13 13:19 IconLBDemo\res\bitmap1.bmp
文件 543 2001-06-13 12:39 IconLBDemo\IconLBDemo.dsw
文件 1101 2001-06-13 15:34 IconLBDemo\Resource.h
文件 1759 2001-06-13 16:50 IconLBDemo\IconListBox.h
文件 1653 2001-06-13 16:58 IconLBDemo\IconLBDemoDlg.h
文件 4999 2001-06-13 17:32 IconLBDemo\IconListBox.cpp
文件 4433 2001-06-13 17:33 IconLBDemo\IconLBDemo.dsp
文件 6535 2001-06-13 17:37 IconLBDemo\IconLBDemoDlg.cpp
文件 6252 2001-06-13 17:45 IconLBDemo\IconLBDemo.rc
文件 28672 2001-06-13 17:46 IconLBDemo\IconLBDemo.exe
评论
共有 条评论