当前位置: 首页>>代码示例>>C++>>正文


C++ CWndButton类代码示例

本文整理汇总了C++中CWndButton的典型用法代码示例。如果您正苦于以下问题:C++ CWndButton类的具体用法?C++ CWndButton怎么用?C++ CWndButton使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CWndButton类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: switch

BOOL CWndVendorConfirm::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) 
{ 
	switch( nID )
	{
	case IDOK:
		{
			CWndVendor* pWndVendor	= (CWndVendor*)g_WndMng.GetWndBase( APP_VENDOR_REVISION );
			if( pWndVendor )
			{
				if( g_pPlayer->m_vtInfo.IsVendorOpen() )
					pWndVendor->Destroy();
				else
					g_DPlay.SendPVendorOpen( (const char*)m_strVendorName );
			}
			Destroy();
		}
		break;
	case IDCANCEL:
		CWndVendor* pWndVendor	= (CWndVendor*)g_WndMng.GetWndBase( APP_VENDOR_REVISION );
		if( pWndVendor && g_pPlayer->m_vtInfo.IsVendorOpen() == FALSE )
		{
			CWndButton* pWndButton	= (CWndButton*)pWndVendor->GetDlgItem( WIDC_OK );
			pWndButton->SetVisible( TRUE );
		}
		Destroy();
		break;
	}
	
	return CWndNeuz::OnChildNotify( message, nID, pLResult ); 
} 
开发者ID:careysky,项目名称:FlyFF,代码行数:30,代码来源:WndVendor.cpp

示例2: DelWndStyle

void CWndGuideTextMgr::OnInitialUpdate() 
{ 
	CWndNeuz::OnInitialUpdate(); 

	DelWndStyle(WBS_MOVE);
	AddWndStyle(WBS_TOPMOST);
	m_wndTitleBar.SetVisible( FALSE );

	m_bVisible = FALSE;

	CWndText* pWndText;
	CWndButton* pWndButton;
    pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
	m_Rect[0] = pWndText->GetWndRect();
	pWndButton = (CWndButton*)GetDlgItem( WIDC_BACK );
	m_Rect[1] = pWndButton->GetWndRect();
#if __VER >= 12 // __MOD_TUTORIAL
	pWndButton->SetVisible(FALSE);
#endif
	pWndButton  = (CWndButton*)GetDlgItem( WIDC_NEXT );	
	m_Rect[2] = pWndButton->GetWndRect();
	m_Rect[3] = GetWndRect();

	m_nCurrentVector = 0;
	m_VecGuideText.clear();	

	m_pTextureBG = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "GuideBG.tga" ), 0, TRUE );
} 
开发者ID:KerwinMa,项目名称:AerothFlyffSource,代码行数:28,代码来源:WndGuideSystem.cpp

示例3: OnInitialUpdate

void CWndOptWindow::OnInitialUpdate() 
{ 
	CWndNeuz::OnInitialUpdate(); 

	CWndButton* pWndEffect = (CWndButton*)GetDlgItem( WIDC_CHECK );
	pWndEffect->SetCheck( g_Option.m_nWindowAlpha == 255 ? FALSE : TRUE);

	CWndButton* pWndButton[ 3 ];

	pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 );
	pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 );
	pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 );
	pWndButton[ 0 ]->SetGroup( TRUE );
	pWndButton[ g_Option.m_nWindowEffect ]->SetCheck( TRUE );
/*
	pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_HIGH );
	pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_MID );
	pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_LOW );
	pWndButton[ 0 ]->SetGroup( TRUE );
*/

	CRect rectRoot = m_pWndRoot->GetLayoutRect();
	CRect rectWindow = GetWindowRect();
	CPoint point( rectRoot.right - rectWindow.Width(), 110 );
	Move( point );
	MoveParentCenter();
} 
开发者ID:domz1,项目名称:SourceFlyFF,代码行数:27,代码来源:WndOption.cpp

示例4: switch

//-----------------------------------------------------------------------------
BOOL CWndMailRequestingBox::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
	switch( nID )
	{
	case WIDC_BUTTON_REQUEST:
		{
			++m_nDestroyCounter;
			CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST );
			if( pWndButton == NULL )
			{
				break;
			}

			if( pWndButton->IsWindowEnabled() == FALSE )
			{
				break;
			}

			g_DPlay.SendQueryMailBox();
			m_timeWaitingRequest = g_tmCurrent + SEC( REQUEST_BUTTON_WAITING_TIME );
			pWndButton->EnableWindow( FALSE );

			break;
		}
	}

	return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
开发者ID:iceberry,项目名称:flyffsf,代码行数:29,代码来源:WndMailRequestingBox.cpp

示例5: MakePath

BOOL CWndLvReqDown::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )
{
	
	CItemElem* pTempElem;
	pTempElem  = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId );

	// 하락 상태가 된 아이템만 올릴 수 있다. 
	if( pTempElem != NULL)
	{
		if(pTempElem->GetLevelDown() < 0)
		{
			if(m_pItemElem) m_pItemElem->SetExtra(0);
			m_pItemElem = pTempElem;
			m_pEItemProp = m_pItemElem->GetProp();
			if(m_pEItemProp != NULL)
			{
				m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff );
			}
			m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1);
			CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
			pButton->EnableWindow(TRUE);
		}
	}

	return TRUE;
}
开发者ID:domz1,项目名称:SourceFlyFF,代码行数:26,代码来源:WndLvReqDown.cpp

示例6: OnDropIcon

BOOL  CWndBlessingCancel::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )
{

	CItemElem* pTempElem;
	pTempElem  = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId );

    if( g_xRandomOptionProperty->GetRandomOptionKind( pTempElem ) == CRandomOptionProperty::eBlessing
		&& g_xRandomOptionProperty->GetRandomOptionSize( pTempElem->GetRandomOptItemId() ))
	{
		// 하락 상태가 된 아이템만 올릴 수 있다. 
		if(pTempElem != NULL)
		{
			if(m_pItemElem) m_pItemElem->SetExtra(0);
			m_pItemElem = pTempElem;
			m_pEItemProp = m_pItemElem->GetProp();
			m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1);
			CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START);
			pButton->EnableWindow(TRUE);
			
			LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_CHANGE );
			if(m_pEItemProp != NULL)
			{
				m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff );
			}
		}
	}
	else
	{
		g_WndMng.PutString( prj.GetText(TID_GAME_BLESSEDNESS_CANCEL), NULL, 0xffff0000 );
		return FALSE;
	}

	return TRUE;

}
开发者ID:iceberry,项目名称:flyffsf,代码行数:35,代码来源:WndBlessingCancel.cpp

示例7: IsDisable

BOOL CWndMessageBox::IsDisable( )
{
	CWndButton * pWndButton = (CWndButton*)GetDlgItem(IDOK);
	if( pWndButton && pWndButton->IsWindowEnabled( ) )
		return TRUE;

	return FALSE;
}
开发者ID:careysky,项目名称:FlyFF,代码行数:8,代码来源:WndMessageBox.cpp

示例8: Process

BOOL CWndVendor::Process()
{
#if __VER >= 11 // __MOD_VENDOR
	// 장사를 시작하면 리셋버튼은 보이지 않게 함 
	CWndButton* pButton	= (CWndButton*)GetDlgItem( WIDC_RESET );
	if(g_pPlayer->m_vtInfo.IsVendorOpen())
		pButton->SetVisible( FALSE );
	else
		pButton->SetVisible( TRUE );
#endif
	return TRUE;
}
开发者ID:careysky,项目名称:FlyFF,代码行数:12,代码来源:WndVendor.cpp

示例9: SetPriority

void CEventHandler::SetPriority(CWndControl* sender,CMainDlg* parent){
	CWndComboBox* cmb = static_cast<CWndComboBox*> (sender);
	CWndDlg* dlgCtrlContainer = parent->m_controlDlg;
	CCharacter* m_char = parent->m_clsCurChar;
	if(m_char!=NULL){
	
		m_char->m_iPriority = cmb->GetSelectedIndex();
		
		CWndButton * btn = static_cast<CWndButton*> (dlgCtrlContainer->GetControl(L"btnPriority"));
		btn->SetEnabled(m_char->m_iPriority==1 || m_char->m_iPriority==2);
		m_char->serialize->SaveInfo(L"Priority",m_char->m_iPriority,TagType::Element,L"/Info");
	}
}
开发者ID:zidane168,项目名称:AutoPlay,代码行数:13,代码来源:EventHandler.cpp

示例10: DelWndStyle

//-----------------------------------------------------------------------------
void CWndMailRequestingBox::OnInitialUpdate( void )
{
	CWndNeuz::OnInitialUpdate();

	DelWndStyle( WBS_MOVE );

	CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST );
	if( pWndButton )
	{
		pWndButton->EnableWindow( FALSE );
	}

	MoveParentCenter();
}
开发者ID:iceberry,项目名称:flyffsf,代码行数:15,代码来源:WndMailRequestingBox.cpp

示例11: OnChildNotify

BOOL CWndOptWindow::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) 
{ 
	CWndButton* pWndAlpha = (CWndButton*)GetDlgItem( WIDC_CHECK );
	CWndButton* pWndEffect = (CWndButton*)GetDlgItem( WIDC_RADIO1 );
	switch( nID )
	{
	case WIDC_CHECK:
		if( pWndAlpha->GetCheck() )
			CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 128;
		else
			CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 255;
	case WIDC_RADIO1:
		break;
	}
	return CWndNeuz::OnChildNotify( message, nID, pLResult ); 
} 
开发者ID:domz1,项目名称:SourceFlyFF,代码行数:16,代码来源:WndOption.cpp

示例12: GetWndCtrl

void CWndAwakening::OnLButtonDblClk( UINT nFlags, CPoint point )
{
	if(!m_pItemElem) return;
	CRect rect;
	LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC1 );
	rect = wndCtrl->rect;
	if( rect.PtInRect( point ) )
	{
		m_pItemElem->SetExtra(0);
		CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
		pButton->EnableWindow(FALSE);
		m_pItemElem = NULL;
		m_pEItemProp = NULL;
		m_pTexture	= NULL;
	}
}
开发者ID:KerwinMa,项目名称:AerothFlyffSource,代码行数:16,代码来源:WndAwakening.cpp

示例13: 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;

}
开发者ID:KerwinMa,项目名称:AerothFlyffSource,代码行数:18,代码来源:WndCollecting.cpp

示例14: Destroy

//-----------------------------------------------------------------------------
BOOL CWndMailRequestingBox::Process( void )
{
	if( m_timeWaitingRequest < g_tmCurrent )
	{
		if( m_nDestroyCounter >= DESTRUCTION_TIME )
		{
			Destroy();
		}

		CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST );
		if( pWndButton )
		{
			pWndButton->EnableWindow( TRUE );
		}
		m_timeWaitingRequest = 0xffffffff;
	}

	return TRUE;
}
开发者ID:iceberry,项目名称:flyffsf,代码行数:20,代码来源:WndMailRequestingBox.cpp

示例15: SerializeRegInfo

void CWndChat::SerializeRegInfo( CAr& ar, DWORD& dwVersion )
{
	CWndNeuz::SerializeRegInfo( ar, dwVersion );
	if( ar.IsLoading() )
	{
		if( dwVersion == 0 )
		{
		}
		else
		{
			ar >> m_bChatLock;
		}
#ifndef __CHAT_V19
		CWndButton* pWndLock = (CWndButton*)GetDlgItem( WIDC_CHECK1 );
		pWndLock->SetCheck( m_bChatLock );
#endif //__CHAT_V19
	}
	else
	{
开发者ID:careysky,项目名称:FlyFF,代码行数:19,代码来源:WndCommunication.cpp


注:本文中的CWndButton类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。