Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MultiColumnComboBox.h
Package: multicol_combo3_demo.zip [view]
Upload User: hzw123hzw
Upload Date: 2007-01-01
Package Size: 18k
Code Size: 2k
Category:
ComboBox
Development Platform:
Visual C++
- // By Xiao Wu Guang
- // MultiColumnComboBox.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CMultiColumnComboBox window
- #ifndef _MULTICOLUMNCOMBOBOX_H_
- #define _MULTICOLUMNCOMBOBOX_H_
- #define LEFTMARGIN_OF_DROPDOWNLIST 2
- #define LEFTMARGIN_OF_CONTROL 1
- #define RIGHTMARGIN_OF_DROPDOWNLIST 4
- #define SPACE_BETWEEN_COLUMN 1
- class CMultiColumnComboBox : public CComboBox
- {
- // Construction
- public:
- CMultiColumnComboBox();
- // Attributes
- public:
- void FormatComboBox(UINT TotalColumn = 2, UINT BoundColumn = 0);
- void SetColumnWidth(UINT ColumnWidth0, ...);
- void SetColumnAlignStyle(UINT ColumnAlignStyle0, ...);
- // Operations
- public:
- void ResetContent();
- int AddRow(LPCTSTR lpszString0, ...);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMultiColumnComboBox)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMultiColumnComboBox();
- // Generated message map functions
- protected:
- private:
- UINT m_TotalColumn;
- UINT m_BoundColumn;
- UINT m_TextItemHeight;
- CPen m_LightGrayPen;
- UINT* m_ColumnWidth;
- UINT* m_ColumnAlignStyle;
- CStringList* m_ColumnItemList;
- //{{AFX_MSG(CMultiColumnComboBox)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- #endif