win32customcontrol.h
来自「这是VCF框架的代码」· C头文件 代码 · 共 166 行
H
166 行
#ifndef _VCF_WIN32CUSTOMCONTROL_H__#define _VCF_WIN32CUSTOMCONTROL_H__//Win32CustomControl.h/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/#if _MSC_VER > 1000# pragma once#endifnamespace VCF{class APPLICATIONKIT_API Win32CustomControl : public Object, public ControlPeer{public: Win32CustomControl( Control* component ); virtual ~Win32CustomControl(); static bool windowClassRegistered_; /** * returns a ID that identifies this control. On Win32 this corresponds to an HWND. */ virtual long getHandleID(); /** * returns a text associated with the component. This usually gets used in the Component::getCaption() method. */ virtual VCF::String getText(); /** * sets the text for the widget */ virtual void setText( const VCF::String& text ); /** * sets the bounds for the component. Bounds are specified in the coordinate system of the componenents parent. */ virtual void setBounds( VCF::Rect* rect ); /** * returns the bounds of the component in the coordinate system of the parent. */ virtual VCF::Rect* getBounds(); /** * shows or hides the component. * This does NOT close the component (if invoked on a frame based component ). */ virtual void setVisible( const bool& visible ); /** * returns wether or not the component is currently visible. */ virtual bool getVisible(); /** * returns a bit-masked unsigned long that contains style constants. * These style constants are defined in the VCF, and must * be translated to the particular windowing system being used. */ virtual unsigned long getStyleMask(); /** * sets the current style mask. * Should cause a repaint of the component, if neccessary. */ virtual void setStyleMask( const unsigned long& styleMask ); /** * returns the component that this Peer is attached to. */ virtual VCF::Control* getControl(); /** * attahces the Peer to a particular component. This should only be done once. */ virtual void setControl( VCF::Control* component ); virtual void setParent( VCF::Control* parent ); virtual VCF::Control* getParent(); virtual bool isFocused(); virtual void setFocus( const bool& focused ); virtual bool isEnabled(); virtual void setEnabled( const bool& enabled ); virtual void repaint( Rect* repaintRect=NULL ); virtual void keepMouseEvents(); virtual void releaseMouseEvents();private: void registerWndClass(); HWND wndHandle_; VCF::Control* component_; VCF::Rect bounds_; VCF::Point clickPt_;};};/***CVS Log info*$Log$*Revision 1.3 2005/07/09 23:14:57 ddiego*merging in changes from devmain-0-6-7 branch.**Revision 1.2.4.1 2005/06/29 05:00:03 marcelloptr*some white spaces**Revision 1.2 2004/08/07 02:49:10 ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.3 2004/06/06 07:05:31 marcelloptr*changed macros, text reformatting, copyright sections**Revision 1.1.2.2 2004/04/29 03:43:15 marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1 2004/04/28 00:28:20 ddiego*migration towards new directory structure**Revision 1.7.8.1 2004/04/26 21:58:43 marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.7 2003/05/17 20:37:12 ddiego*this is the checkin for the 0.6.1 release - represents the merge over from*the devmain-0-6-0 branch plus a few minor bug fixes**Revision 1.6.22.2 2003/03/23 03:23:50 marcelloptr*3 empty lines at the end of the files**Revision 1.6.22.1 2003/03/12 03:11:11 ddiego*switched all member variable that used the "m_"<name> prefix to* <name>"_" suffix nameing standard.*Also changed all vcf builder files to accomadate this.*Changes were made to the Stream classes to NOT multiple inheritance and to*be a little more correct. Changes include breaking the FileStream into two*distinct classes, one for input and one for output.**Revision 1.6 2002/01/24 01:46:48 ddiego*added a cvs "log" comment to the top of all files in vcf/src and vcf/include*to facilitate change tracking**/#endif // _VCF_WIN32CUSTOMCONTROL_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?