|
/////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2003 - Don Kackman
//
// Distribute and change freely, but please don't remove my name from the source
//
// 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.
//
// The class CVisualStylesXp and the conept of theme browser app are borrowed from
// David Y Zhao. His example can be seen at http://www.codeproject.com/w2k/xpvisualstyle.asp
//
// questions - contact me at dkackman_2000@yahoo.com
//
#pragma once
#using <mscorlib.dll>
using namespace System::Windows::Forms::Themes;
using namespace System::Drawing;
namespace System
{ namespace Windows
{ namespace Forms
{ namespace Themes
{
//
// both window classes and window parts have states
// This interface is implemented by both WindowTheme and ThemePart
// and is used by the ThemePArtStates class so it can get the correct
// ID values to pass to UxTheme
__gc public __interface IRenderableItem
{
__property bool get_IsDefined();
void DrawBackground( Graphics* graphics, System::Drawing::Rectangle Rect, System::Drawing::Rectangle ClipRect );
void DrawBackground( Graphics* graphics, System::Drawing::Rectangle Rect );
void DrawText( Graphics* graphics, String* Text, Int32 CharCount, DrawTextFlags TextFlags, bool Grayed, System::Drawing::Rectangle Rect );
void DrawText( Graphics* graphics, String* Text, DrawTextFlags TextFlags, bool Grayed, System::Drawing::Rectangle Rect );
System::Drawing::Size GetSize( Graphics* graphics, ThemeSize eSize );
__property System::Drawing::Color get_TextColor();
};
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.