========================================
ITheme.cpp:
========================================
search:
Code:
#ifdef __LANG_1013 PLANG_DATA pLangData = CLangMan::GetInstance()->GetLangData( ::GetLanguage() ); CD3DFont* pFont;
Code:
#ifdef __v19BUTTONS
pFont = new CD3DFont( _T("Verdana"), 9, D3DFONT_BOLD );
m_mapFont.SetAt( _T( "ButtonV19"), pFont );
#endif// __v19BUTTONS
Code:
m_mapFont.Lookup( _T("Arial Black9"), (void*&)m_pFontWndTitle );
Code:
#ifdef __v19BUTTONS
m_mapFont.Lookup( _T("ButtonV19"), (void*&)m_pFontButton );
#endif//__v19BUTTONS
position etc.
-----------------------------------------------------------------------------
search:
Code:
RenderWndButton_4Texture( p2DRender, pWndButton );
Code:
#ifdef __v19BUTTONS RenderWndButtonText(p2DRender,pWndButton); #endif// __v19BUTTONS
-----------------------------------------------------------------------------
search :
Code:
void CTheme::RenderWndButtonText( C2DRender* p2DRender, CWndButton* pWndButton )
Code:
#ifdef __v19BUTTONS
void CTheme::RenderWndButtonText( C2DRender* p2DRender, CWndButton* pWndButton )
{
BOOL bHighLight = pWndButton->IsHighLight();
BOOL bEnable = pWndButton->IsWindowEnabled();
BOOL bPush = pWndButton->IsPush();
DWORD dwColor = GetButtonFontColor( pWndButton );
POINT pt = GetButtonTextPos( p2DRender, pWndButton );
CD3DFont* pFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontButton );
if ( pWndButton->IsPush() )
{
p2DRender->TextOut( pt.x, pt.y + 2, pWndButton->GetTitle(), dwColor );
}
else
{
p2DRender->TextOut( pt.x, pt.y + 1, pWndButton->GetTitle(), dwColor );
}
p2DRender->SetFont( pFont );
}
#endif//__v19BUTTONS
ITheme.h
========================================
search:
Code:
CD3DFont* m_pFontWndTitle;
Code:
#ifdef __v19BUTTONS CD3DFont* m_pFontButton #endif//__v19BUTTONS
WndControl.cpp
========================================
search:
Code:
CWndButton::CWndButton()
{
Code:
#ifdef __v19BUTTONS m_nFontColor = D3DCOLOR_ARGB( 255, 10, 10, 10 ); m_nPushColor = D3DCOLOR_ARGB( 255, 64, 64, 64 ); m_nDisableColor = D3DCOLOR_ARGB( 255, 15, 15, 15 ); m_nHighlightColor = D3DCOLOR_ARGB( 255, 80, 80, 80 ); #endif//__v19BUTTONS
Neuz VersionCommon.h
========================================
Code:
#define __v19BUTTONS
Code 100% created by me
picuture
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]