本文整理汇总了C++中CWndButton::IsPush方法的典型用法代码示例。如果您正苦于以下问题:C++ CWndButton::IsPush方法的具体用法?C++ CWndButton::IsPush怎么用?C++ CWndButton::IsPush使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWndButton
的用法示例。
在下文中一共展示了CWndButton::IsPush方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnChildNotify
BOOL CWndTotalOption::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
switch( nID )
{
#ifdef __OPTION_EX
case WIDC_BUT_OK:
{
/*m_OptTabGame*/
if( m_OptTabGame.pWndButton1[0]->GetCheck())
{
g_Option.m_bTrade = 1;
}else
if( m_OptTabGame.pWndButton1[1]->GetCheck())
{
g_Option.m_bTrade = 0;
}
if( m_OptTabGame.pWndButton2[0]->GetCheck())
{
g_Option.m_bSay = 1;
}else
if( m_OptTabGame.pWndButton2[1]->GetCheck())
{
g_Option.m_bSay = 0;
}
if( m_OptTabGame.pWndButton3[0]->GetCheck())
{
g_Option.m_bParty = 1;
}else
if( m_OptTabGame.pWndButton3[1]->GetCheck())
{
g_Option.m_bParty = 0;
}
if( m_OptTabGame.pWndButton4[0]->GetCheck())
{
g_Option.m_bMessengerJoin = 1;
}else
if( m_OptTabGame.pWndButton4[1]->GetCheck())
{
g_Option.m_bMessengerJoin = 0;
}
if( m_OptTabGame.pWndButton5[0]->GetCheck())
{
g_Option.m_bMessenger = 1;
}else
if( m_OptTabGame.pWndButton5[1]->GetCheck())
{
g_Option.m_bMessenger = 0;
}
if( m_OptTabGame.pWndButton6[0]->GetCheck())
{
g_DPlay.SendChangePKPVPMode( FREEPK_MODE, 0 );
}else
if( m_OptTabGame.pWndButton6[1]->GetCheck())
{
g_DPlay.SendChangePKPVPMode( FREEPK_MODE, 1 );
}
if( m_OptTabGame.pWndButton7[0]->GetCheck())
{
g_DPlay.SendChangePKPVPMode( PVPCONFIRM_MODE, 3 );
}else
if( m_OptTabGame.pWndButton7[1]->GetCheck())
{
g_DPlay.SendChangePKPVPMode( PVPCONFIRM_MODE, 2 );
}
if( m_OptTabGame.pWndButton8[0]->GetCheck())
{
g_DPlay.SendQueryEquipSetting(TRUE);
}else
if( m_OptTabGame.pWndButton8[1]->IsPush())
{
g_DPlay.SendQueryEquipSetting(FALSE);
}
if( m_OptTabGame.pWndButton9[0]->GetCheck())
{
g_Option.m_bAutoAttack = 1;
}else
if( m_OptTabGame.pWndButton9[1]->GetCheck())
{
g_Option.m_bAutoAttack = 0;
}
if( m_OptTabGame.pWndHelp->GetCheck())
g_Option.m_nInstantHelp = TRUE;
else
g_Option.m_nInstantHelp = FALSE;
if( m_OptTabGame.pWndCheck->GetCheck())
{
*g_Option.m_pGuide = 0;
}
else
{
CWndGuideSystem* pWndGuide = NULL;
pWndGuide = (CWndGuideSystem*)GetWndBase( APP_GUIDE );
pWndGuide->m_wndGuideText->SetVisible(FALSE);
*g_Option.m_pGuide = 2;
}
if( m_OptTabGame.pWndAlpha->GetCheck())
CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 128;
else
//.........这里部分代码省略.........