|
/////////////////////////////////////////////////////////////////////////////////
// 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
#include "PartsCollection.h"
#include "ThemeItem.h"
#include "UxTheme.h"
#include "IHasThemePartId.h"
using namespace System::Windows::Forms::Themes;
namespace System
{ namespace Windows
{ namespace Forms
{ namespace Themes
{
//
// WindowTheme represent a single window class and its parts and states
//
__gc public __sealed class WindowTheme : public ThemeItem, public IHasThemePartId
{
public private:
WindowTheme( int propTableIndex );
private:
~WindowTheme(void);
public:
__property PartsCollection* get_Parts() { return m_Parts; }
__property StatesCollection* get_States(){ return m_States; }
__property virtual String* get_Name();
// IHasThemePartId
__property int get_ThemePartId(){ return 0; }
__property System::Windows::Forms::Themes::UxTheme* get_UxTheme(){ return m_UxTheme; }
private:
PartsCollection* m_Parts;
StatesCollection* m_States;
System::Windows::Forms::Themes::UxTheme* m_UxTheme;
};
}
}
}
}
|
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.
The first computer program I ever wrote was in BASIC on a TRS-80 Model I and it looked something like:
10 PRINT "Don is cool"
20 GOTO 10
It only went downhill from there.
Hey look, I've got a blog