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
ListCtrlEx.h
Package: ISQL_src.zip [view]
Upload User: jsxglz
Upload Date: 2007-01-03
Package Size: 117k
Code Size: 2k
Category:
SQL Server
Development Platform:
Visual C++
- // ListVwEx.h : interface of the CListCtrlEx class
- //
- // This class provedes a full row selection mode for the report
- // mode list view control.
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1996 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #pragma once
- class CListCtrlEx : public CListCtrl
- {
- DECLARE_DYNCREATE(CListCtrlEx)
- // Construction
- public:
- CListCtrlEx();
- // Attributes
- protected:
- BOOL m_bFullRowSel;
- public:
- BOOL SetFullRowSel(BOOL bFillRowSel);
- BOOL GetFullRowSel();
- BOOL m_bClientWidthSel;
- // Overrides
- protected:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CListCtrlEx)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CListCtrlEx();
- #ifdef _DEBUG
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- static LPCTSTR MakeShortString(CDC* pDC, LPCTSTR lpszLong, int nColumnLen, int nOffset);
- BOOL OnToolTipText(UINT /*uID*/, NMHDR* pNMHDR, LRESULT* pResult);
- virtual int OnToolHitTest(CPoint point, TOOLINFO* pTI) const;
- int CellRectFromPoint(CPoint& point, CRect* pRectCell, int* pCol) const;
- void RepaintSelectedItems();
- // Implementation - client area width
- int m_cxClient;
- // Implementation - state icon width
- int m_cxStateImageOffset;
- afx_msg LRESULT OnSetImageList(WPARAM wParam, LPARAM lParam);
- // Implementation - list view colors
- COLORREF m_clrText;
- COLORREF m_clrTextBk;
- COLORREF m_clrBkgnd;
- afx_msg LRESULT OnSetTextColor(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetTextBkColor(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetBkColor(WPARAM wParam, LPARAM lParam);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CListCtrlEx)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnPaint();
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////