win32context.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 689 行 · 第 1/2 页

H
689
字号
	Draws a tab page - the page on which other controls for the page are	parented to, that is compliant	with the native windowing systems default look and feel	*/	virtual void drawThemeTabPage( Rect* rect, DrawUIState& state );	virtual void drawThemeTabContent( Rect* rect, DrawUIState& state );	virtual void drawThemeTabs( Rect* rect, DrawUIState& paneState, TabState& selectedTabState, TabState& otherTabs, const std::vector<String>& tabNames, int selectedTabIndex );	/**	* Draws a tick mark, like that used for a slider control, that is compliant	* with the native windowing systems default look and feel	*/	virtual void drawThemeTickMarks( Rect* rect, SliderState& state );	/**	* Draws a slider control, like that used for a slider control, that is compliant	* with the native windowing systems default look and feel	*/	virtual void drawThemeSlider( Rect* rect, SliderState& state );	/**	* Draws a progress bar control, that is compliant	* with the native windowing systems default look and feel	*/	virtual void drawThemeProgress( Rect* rect, ProgressState& state );	/**	*	*	*/	virtual void drawThemeImage( Rect* rect, Image* image, DrawUIState& state );	/**	* draws a header control that is compliant	* with the native windowing systems default look and feel	*/	virtual void drawThemeHeader( Rect* rect, ButtonState& state );	/**	* draws edges, useful for separators, that is compliant	* with the native windowing systems default look and feel.	* use a mask or 1 or more values of type ContextPeer::EdgeType	* to indicate which sides of the rect to draw an edge on	*/	virtual void drawThemeEdge( Rect* rect, DrawUIState& state, const long& edgeSides, const long& edgeStyle );	/**	* Draws a size gripper for resizing a control/window that is compliant	* with the native windowing systems default look and feel	*/	virtual void drawThemeSizeGripper( Rect* rect, DrawUIState& state );	/**	* Draws a them compliant background	*/	virtual void drawThemeBackground( Rect* rect, BackgroundState& state );	/**	* Draws the background appropriate for a menu item that is compliant	* with the native windowing systems default look and feel.	* This is typically called first by a menu item to give it a standard	* look and feel in it's background before drawing any thing else	*/	virtual void drawThemeMenuItem( Rect* rect, MenuState& state );	virtual void drawThemeMenuItemText( Rect* rect, MenuState& state );	/**	*	*	*/	virtual void drawThemeText( Rect* rect, TextState& state );protected:	void drawImageAGG(  const double& x, const double& y, Rect* imageBounds, Image* image );	void drawGrayScaleImage( const double& x, const double& y, Rect* imageBounds, Image* image );	/**	*	*	*/	void prepareDCWithContextFont( HFONT& fontHandle );	/**	*	*	*/	HDC getDC();	/**	* Utility function to draw a transparent bitmap	*/	static void drawTransparentBitmap( HDC hdc, HBITMAP hBitmap, long xStart,	                                   long yStart, COLORREF cTransparentColor );	private:protected:	HRGN clipRGN_;	bool pathStarted_;	Point oldOrigin_;	Point origin_;	bool inFillPath_;	HDC dc_;	HBITMAP memBitmap_;	HBITMAP originalBitmap_;	HBRUSH currentHBrush_;	HPEN currentHPen_;	HFONT currentHFont_;	int currentDCState_;	bool isMemoryCtx_;	GraphicsContext* context_;	bool isXORModeOn_;	double strokeWidth_;	bool alignToBaseline_;};};/***CVS Log info*$Log$*Revision 1.6  2006/04/07 02:35:42  ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.5.2.5  2006/03/01 04:34:57  ddiego*fixed tab display to use themes api.**Revision 1.5.2.4  2006/02/21 04:32:51  ddiego*comitting moer changes to theme code, progress bars, sliders and tab pages.**Revision 1.5.2.3  2006/02/19 22:59:44  ddiego*more vc80 project updates, plus some new theme aware code for xp. this is still in development.**Revision 1.5.2.2  2005/10/17 01:36:34  ddiego*some more under the hood image stuff. updated agg.**Revision 1.5.2.1  2005/10/11 00:54:52  ddiego*added initial changes for grayscale image support. fixed some minor changes to form loading and creating.**Revision 1.5  2005/07/09 23:06:01  ddiego*added missing gtk files**Revision 1.4  2005/01/02 03:04:26  ddiego*merged over some of the changes from the dev branch because they're important resoource loading bug fixes. Also fixes a few other bugs as well.**Revision 1.3.2.3  2005/06/26 01:27:54  marcelloptr*added images to a PushButton**Revision 1.3.2.2  2005/03/14 04:17:26  ddiego*adds a fix plus better handling of accelerator keys, ands auto menu title for the accelerator key data.**Revision 1.3.2.1  2004/12/19 04:05:05  ddiego*made modifications to methods that return a handle type. Introduced*a new typedef for handles, that is a pointer, as opposed to a 32bit int,*which was causing a problem for 64bit compiles.**Revision 1.3  2004/12/01 04:31:44  ddiego*merged over devmain-0-6-6 code. Marcello did a kick ass job*of fixing a nasty bug (1074768VCF application slows down modal dialogs.)*that he found. Many, many thanks for this Marcello.**Revision 1.2.2.5  2004/11/10 02:08:41  marcelloptr*minor change on a comment as for doxygen**Revision 1.2.2.4  2004/11/09 18:47:20  chriskr*changed class name VisualStylesXP to Win32ThemeDLLWrapper**Revision 1.2.2.3  2004/11/08 18:17:23  marcelloptr*more documentation**Revision 1.2.2.2  2004/11/06 20:22:32  chriskr*added dynamic linking to UxTheme.dll*added example xp theme support for drawThemeButtonRect()**Revision 1.2.2.1  2004/10/27 03:12:18  ddiego*integrated chrisk changes**Revision 1.2  2004/08/07 02:49:18  ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.4  2004/07/15 01:52:54  ddiego*added drawThemeComboboxRect implementation so a combobox*control draws itself correctly.**Revision 1.1.2.3  2004/07/09 03:39:30  ddiego*merged in changes from the OSX branch for new theming API. Added*support for controlling the use of locale translated strings in components.**Revision 1.1.2.2  2004/04/29 04:10:28  marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1  2004/04/28 03:40:31  ddiego*migration towards new directory structure**Revision 1.23.4.1  2004/04/26 21:58:43  marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.23  2003/12/18 05:15:58  ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.22.2.2  2003/10/28 04:06:11  ddiego*updated the GraphicsContext and ContextPeer classes to support*slider control drawing. adjusted the Slider control accordingly.*Also changed some of the GraphicsKit headers to conform to the*current header style.**Revision 1.22.2.1  2003/09/05 21:03:39  ddiego*moved the various control destructor's to protected scope*migrated code into destroy() overridden methods*----------------------------------------------------------------------**Revision 1.22  2003/08/09 02:56:44  ddiego*merge over from the devmain-0-6-1 branch*Changes*Features:*-Added additional implementation to better support the MVC architecture in*the VCF**-Added a Document/View architecure that is similar to MFC's or NextSteps's*Doc/View architectures**-Integrated the Anti Grain Graphics library into the GraphicsKit. There is*now basic support for it in terms of drawing vector shapes*(fills and strokes). Image support will come in the next release**-Added several documented graphics tutorials**Bugfixes:**[ 775744 ] wrong buttons on a dialog*[ 585239 ] Painting weirdness in a modal dialog ?*[ 585238 ] Modal dialog which makes a modal Dialog*[ 509004 ] Opening a modal Dialog causes flicker*[ 524878 ] onDropped not called for MLTcontrol**Plus an issue with some focus and getting the right popup window to activate*has also been fixed**Revision 1.21.2.2  2003/06/16 03:09:39  ddiego*beginning to add support for AGG into the VCF GraphicsKit*added some missing files*added some changes to the new version of xmake**Revision 1.21.2.1  2003/06/05 03:48:53  ddiego*added a way to get part of a graphics context into an image - no*implementation yet.**Revision 1.21  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.20.2.3  2003/05/13 03:57:13  ddiego*cleaned up the GraphicsKit, got rid of some old crap files, cleaned*up the ContextPeer so that tehre are fewer methods to implement, and*moved the repetitive fillPath and strokePath code that was copied into*all the context peers back into the GraphicsContext where it belongs**Revision 1.20.2.2  2003/03/23 03:23:50  marcelloptr*3 empty lines at the end of the files**Revision 1.20.2.1  2003/03/12 03:11:09  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.20  2003/02/26 04:30:40  ddiego*merge of code in the devmain-0-5-9 branch into the current tree.*most additions are in the area of the current linux port, but the major*addition to this release is the addition of a Condition class (currently*still under development) and the change over to using the Delegate class*exclusively from the older event handler macros.**Revision 1.19.2.4  2003/02/24 05:42:18  ddiego*moved the code for the VariantData calss into it's own header*migrated to the new event style using Delegates instead of relying on*the ugly macros that we were using before - same functionality though*made sure everything still works and compiles, including neccessary*changes in the VCF Builder so that it creates code in the new style*This changes to teh new style of using Delegates completes task 58837**Revision 1.19.2.3  2003/01/08 00:19:46  marcelloptr*mispellings and newlines at the end of all source files**Revision 1.19.2.2  2002/12/28 21:51:18  marcelloptr*Fixes and improvements for WM_COPYDATA, Point, Rect, Size, GraphicsContext and StringUtils**Revision 1.19.2.1  2002/12/27 23:04:40  marcelloptr*Improved macros for automatic import/export of libraries. - Warning fixes. - Other Minor Changes.**Revision 1.19  2002/11/18 00:46:08  ddiego*this is the merge over of all the bug fixes and features (mostly*VCF Builder stuff) from the devmain-0-5-8 branch**Revision 1.18.10.2  2002/09/30 21:08:18  ddiego*piddling stuff**Revision 1.18.10.1  2002/09/27 23:38:35  ddiego*added support for geting various layout information*added support for drawing various graphics UI primitives like scroll buttons*tabs, tab pages, etc, partially to have this support in place for use*in MacOSX.*Also added scrolling buttons to TabbedPages, this fixes task 56652 in the*ApplicationKit list**Revision 1.18  2002/05/09 03:10:43  ddiego*merged over code from development branch devmain-0-5-1a into the main CVS trunk**Revision 1.17.4.1  2002/04/27 15:52:19  ddiego*Changed a bunch of files include and made it a bit faster and added better include*guards in the common headers**Revision 1.17  2002/01/31 05:46:14  ddiego*fixed resource leak with GraphicsContexts used as memory GC's*Works fine in 98 with no drop of GDI resources.**Revision 1.16  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_WIN32CONTEXT_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?