本文整理汇总了C++中CWndButton::SetTexture方法的典型用法代码示例。如果您正苦于以下问题:C++ CWndButton::SetTexture方法的具体用法?C++ CWndButton::SetTexture怎么用?C++ CWndButton::SetTexture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWndButton
的用法示例。
在下文中一共展示了CWndButton::SetTexture方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetButtonCaption
BOOL CCollectingWnd::SetButtonCaption(bool bIsStart)
{
#if __VER >= 11 // __SYS_COLLECTING
CWndButton* pWndButton = (CWndButton*)GetDlgItem( WIDC_BUTTON1 );
if(bIsStart)
pWndButton->SetTexture(m_pParentWnd->m_pApp->m_pd3dDevice, MakePath( DIR_THEME, _T( "ButtStop.bmp" )), TRUE );
else
{
if(::GetLanguage() == LANG_FRE)
pWndButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButOk2.bmp" ) ), TRUE);
else
pWndButton->SetTexture(m_pParentWnd->m_pApp->m_pd3dDevice, MakePath( DIR_THEME, _T( "ButtStart.bmp" )), TRUE );
}
#endif
return true;
}
示例2: OnInitialUpdate
void CWndBlessingCancel::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
// 여기에 코딩하세요
CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START);
if(::GetLanguage() == LANG_FRE)
pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButOk2.bmp" ) ), TRUE);
pButton->EnableWindow(FALSE);
m_pText = (CWndText*)GetDlgItem( WIDC_DESC );
SetDescription();
// 윈도를 중앙으로 옮기는 부분.
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), 110 );
Move( point );
MoveParentCenter();
}
示例3: OnInitialUpdate
void CWndLvReqDown::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
// 여기에 코딩하세요
CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
if(::GetLanguage() == LANG_FRE)
pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButtNormal00.tga" ) ), TRUE);
pButton->EnableWindow(FALSE);
m_pText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
SetDescription();
/*
// 윈도를 중앙으로 옮기는 부분.
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), 110 );
Move( point );*/
MoveParentCenter();
}
示例4: OnInitialUpdate
void CWndSummonAngel::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
// 여기에 코딩하세요
//Ctrl Initialize.
m_pText = (CWndText *)GetDlgItem( WIDC_TEXT1 );
m_pStatic[0] = (CWndStatic *)GetDlgItem( WIDC_STATIC_RED );
m_pStatic[1] = (CWndStatic *)GetDlgItem( WIDC_STATIC_BLUE );
m_pStatic[2] = (CWndStatic *)GetDlgItem( WIDC_STATIC_GREEN );
SummonRateRefresh();
int StaticID[20] = {WIDC_STATIC11, WIDC_STATIC12, WIDC_STATIC13, WIDC_STATIC14, WIDC_STATIC15, WIDC_STATIC16,
WIDC_STATIC17, WIDC_STATIC18, WIDC_STATIC19, WIDC_STATIC20, WIDC_STATIC21, WIDC_STATIC22,
WIDC_STATIC23, WIDC_STATIC24, WIDC_STATIC25, WIDC_STATIC26, WIDC_STATIC27, WIDC_STATIC28,
WIDC_STATIC29, WIDC_STATIC30};
for(int i=0; i<MAX_MATDIE; i++)
{
m_MatDie[i].wndCtrl = GetWndCtrl( StaticID[i] );
m_MatDie[i].staticNum = StaticID[i];
m_MatDie[i].isUse = FALSE;
m_MatDie[i].pItemElem = NULL;
m_ItemInfo[i].extracount = 0;
m_ItemInfo[i].itemid = -1;
}
//Text Setting
CWndStatic* pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC3 );
pStatic->SetTitle(prj.GetText(TID_GAME_REDANGEL_RATE));
pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC4 );
pStatic->SetTitle(prj.GetText(TID_GAME_BLUEANGEL_RATE));
pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC5 );
pStatic->SetTitle(prj.GetText(TID_GAME_GREENANGEL_RATE));
pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC6 );
pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO1));
pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC1 );
pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO2));
pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC7 );
pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO3));
//France Button Image
CWndButton* pButton = (CWndButton*)GetDlgItem( WIDC_START );
if(::GetLanguage() == LANG_FRE)
pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButtNormal00.tga" ) ), TRUE);
//Window Position
m_pWndInventory = (CWndInventory*)GetWndBase( APP_INVENTORY );
CRect rectInventory;
if(m_pWndInventory != NULL)
{
m_pWndInventory->m_wndItemCtrl.SetDieFlag(TRUE);
rectInventory = m_pWndInventory->GetWindowRect( TRUE );
}
CPoint ptInventory = rectInventory.TopLeft();
CPoint ptMove;
CRect rect = GetWindowRect( TRUE );
if( ptInventory.x > rect.Width() / 2 )
ptMove = ptInventory - CPoint( rect.Width(), 0 );
else
ptMove = ptInventory + CPoint( rectInventory.Width(), 0 );
Move( ptMove );
}