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
CustomizeDialog.h
Package: 语音程序.rar [view]
Upload User: lczygg
Upload Date: 2007-07-03
Package Size: 2947k
Code Size: 4k
Category:
Speech/Voice recognition/combine
Development Platform:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // CustomizeDialog.h: interface for the CCustomizeDialog class.
- //
- /////////////////////////////////////////////////////////////////////////////
- // Copyright (c) 2001 by Nikolay Denisov. All rights reserved.
- //
- // This code is free for personal and commercial use, providing this
- // notice remains intact in the source files and all eventual changes are
- // clearly marked with comments.
- //
- // You must obtain the author's consent before you can include this code
- // in a software library.
- //
- // No warrantee of any kind, express or implied, is included with this
- // software; use at your own risk, responsibility for damages (if any) to
- // anyone resulting from the use of this software rests entirely with the
- // user.
- //
- // Please email bug reports, bug fixes, enhancements, requests and
- // comments to: nick@actor.ru
- /////////////////////////////////////////////////////////////////////////////
- #ifndef __CUSTOMIZEDIALOG_H__
- #define __CUSTOMIZEDIALOG_H__
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // This define determines whether the List Boxes in Customize Toolbar has Customdraw or not.
- //#define CUSTOM_DRAW // should listbox custom draw be done ,as it uses undocumented things
- enum TextOptions
- {
- toNone = -1,
- toTextLabels = 0,
- toTextOnRight = 1,
- toNoTextLabels = 2,
- };
- enum IconOptions
- {
- ioNone = -1,
- ioSmallIcons = 0,
- ioLargeIcons = 1,
- };
- // Customize dialog
- #define IDD_CUSTOMIZE 0x7900
- // Customize dialog controls
- #define IDC_CB_TEXTOPTIONS 1000
- #define IDC_CB_ICONOPTIONS 1001
- class CToolBarEx;
- /////////////////////////////////////////////////////////////////////////////
- // CCustomizeDialog dialog
- class CCustomizeDialog : public CWnd
- {
- DECLARE_DYNAMIC( CCustomizeDialog );
- // Construction
- public:
- CCustomizeDialog( CToolBarEx* pToolBar,
- TextOptions eTextOptions,
- IconOptions eIconOptions );
- // Operations
- public:
- void SetTextOptions( TextOptions eTextOptions);
- void SetIconOptions( IconOptions eIconOptions);
- TextOptions GetTextOptions() { return m_eTextOptions; }
- IconOptions GetIconOptions() { return m_eIconOptions; }
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCustomizeDialog)
- protected:
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- #ifdef CUSTOM_DRAW
- CSize GetButtonSize() const;
- #endif // CUSTOM_DRAW
- // Implementation data
- protected:
- CToolBarEx* m_pToolBar;
- // Generated message map functions
- protected:
- #ifdef CUSTOM_DRAW
- void GetColors();
- #endif // CUSTOM_DRAW
- CComboBox m_wndIconOptions;
- CComboBox m_wndTextOptions;
- CStatic m_wndIconOptionsText;
- CStatic m_wndTextOptionsText;
- TextOptions m_eTextOptions;
- IconOptions m_eIconOptions;
- #ifdef CUSTOM_DRAW
- COLORREF m_clrHighLightText;
- COLORREF m_clrBtnText;
- COLORREF m_clrHighLight;
- COLORREF m_clrBtnFace;
- COLORREF m_clrGrayText;
- COLORREF m_clr3dShadow;
- COLORREF m_clr3dHilite;
- #endif // CUSTOM_DRAW
- //{{AFX_MSG(CCustomizeDialog)
- afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg void OnSysColorChange();
- //}}AFX_MSG
- afx_msg void OnTextOptions();
- afx_msg void OnIconOptions();
- LRESULT OnInitDialog( WPARAM wParam, LPARAM lParam );
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- #endif // !__CUSTOMIZEDIALOG_H__