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
DateComboBox.cpp
Package: propgrid.zip [view]
Upload User: yangzi5763
Upload Date: 2007-01-02
Package Size: 239k
Code Size: 1k
Category:
ActiveX-DCOM-ATL
Development Platform:
Visual C++
- // DateComboBox.cpp : implementation file
- //
- #include "stdafx.h"
- #include "xpropertieswnd.h"
- #include "DateComboBox.h"
- #include "ControlsWnd.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDateComboBox
- CDateComboBox::CDateComboBox()
- {
- m_pControl = NULL;
- }
- CDateComboBox::~CDateComboBox()
- {
- }
- BEGIN_MESSAGE_MAP(CDateComboBox, CDateTimeCtrl)
- //{{AFX_MSG_MAP(CDateComboBox)
- ON_NOTIFY_REFLECT(DTN_DATETIMECHANGE, OnDatetimechange)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDateComboBox message handlers
- BOOL CDateComboBox::Create(CControlsWnd_CDataComboBox *pControl)
- {
- m_pControl = pControl;
- BOOL bResult = CDateTimeCtrl::Create(WS_CHILD, CRect(0,0,0,0), (CWnd*)m_pControl->GetWindowNotify(), 0x3E8);
- if (bResult)
- SetFont(((CWnd*)m_pControl->GetWindowNotify())->GetFont());
- return bResult;
- }
- // Function name : CDateComboBox::OnDatetimechange
- // Description :
- // Return type : void
- // Argument : NMHDR* pNMHDR
- // Argument : LRESULT* pResult
- void CDateComboBox::OnDatetimechange(NMHDR* pNMHDR, LRESULT* pResult)
- {
- CString sDate;
- GetWindowText(sDate);
- m_pControl->OnSelectItem(sDate, 0);
- *pResult = 0;
- }