- 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
TIMECTL.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- // timectl.h : Declaration of the CTimeCtrl OLE control class.
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1998 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.
- /////////////////////////////////////////////////////////////////////////////
- // Numeric constants
- const DEFAULT_INTERVAL = 1000;
- /////////////////////////////////////////////////////////////////////////////
- // CTimeCtrl : See timectl.cpp for implementation.
- class CTimeCtrl : public COleControl
- {
- DECLARE_DYNCREATE(CTimeCtrl)
- // Constructor
- public:
- CTimeCtrl();
- // Overrides
- // Drawing function
- virtual void OnDraw(
- CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
- // Persistence
- virtual void DoPropExchange(CPropExchange* pPX);
- // Reset control state
- virtual void OnResetState();
- virtual void OnAmbientPropertyChange(DISPID dispid);
- virtual void OnEnabledChanged();
- // Implementation
- protected:
- ~CTimeCtrl();
- DECLARE_OLECREATE_EX(CTimeCtrl) // Class factory and guid
- DECLARE_OLETYPELIB(CTimeCtrl) // GetTypeInfo
- DECLARE_PROPPAGEIDS(CTimeCtrl) // Property page IDs
- DECLARE_OLECTLTYPE(CTimeCtrl) // Type name and misc status
- // Message maps
- //{{AFX_MSG(CTimeCtrl)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // Dispatch maps
- //{{AFX_DISPATCH(CTimeCtrl)
- short m_interval;
- afx_msg void OnIntervalChanged();
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
- afx_msg void AboutBox();
- // Event maps
- //{{AFX_EVENT(CTimeCtrl)
- void FireTimer()
- {FireEvent(eventidTimer,EVENT_PARAM(VTS_NONE));}
- //}}AFX_EVENT
- DECLARE_EVENT_MAP()
- // Dispatch and event IDs
- public:
- enum {
- //{{AFX_DISP_ID(CTimeCtrl)
- dispidInterval = 1L,
- eventidTimer = 1L,
- //}}AFX_DISP_ID
- };
- protected:
- void OnSetClientSite();
- void StartTimer();
- void StopTimer();
- };