當前位置: 首頁>>代碼示例>>C++>>正文


C++ Default函數代碼示例

本文整理匯總了C++中Default函數的典型用法代碼示例。如果您正苦於以下問題:C++ Default函數的具體用法?C++ Default怎麽用?C++ Default使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Default函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: Default

C4ObjectInfoCore::C4ObjectInfoCore()
{
	Default();
}
開發者ID:Fulgen301,項目名稱:openclonk,代碼行數:4,代碼來源:C4InfoCore.cpp

示例2: Default

C4RankSystem::C4RankSystem()
{
	Default();
}
開發者ID:772,項目名稱:openclonk,代碼行數:4,代碼來源:C4RankSystem.cpp

示例3: ReleaseCapture

void CContainer::OnNcLButtonUp(UINT nHitTest, CPoint point)
{
	// TODO: Add your message handler code here and/or call default

	if (nHitTest == HTCAPTION) 
	{
		
		if(nHitTest == HTCAPTION)
		{
				if (m_NCDragWindow) 
				{
					ReleaseCapture();
					m_NCDragWindow=FALSE;	
					return;
				}

		}

	}

	CRect rc;
	//------------------ para el boton
	CRect rcT=m_rcCloseBtn;
	ClientToScreen(rcT);
	point.y+=20;
	point.x+=1;
	if (rcT.PtInRect(point))
	{
		if (m_stateBtn ==PRESS)
		{
			if (IsWindowVisible())
			{
				//if (m_Numtabs==1)
					ShowPane(FALSE);
				//else
				//	DeleteTab(m_iSelectTab);
			}
			else
				ShowPane(TRUE);
			if (m_DOCKSITE == BS_ALIGN_BOTTOM)
				((DockManager*)theApp->m_WinMain->m_DockBottom)->EveryWindowsInsert();
			if (m_DOCKSITE == BS_ALIGN_LEFT)
				((DockManager*)theApp->m_WinMain->m_DockLeft)->EveryWindowsInsert();
			if (m_DOCKSITE == BS_ALIGN_RIGHT)
				((DockManager*)theApp->m_WinMain->m_DockRight)->EveryWindowsInsert();
			theApp->m_WinMain->UpdateFrame();
			//::SendMessage(GetParent(),WM_SIZE,0,0);
		}

	}

	if (m_stateBtn ==PRESS)
	{
		m_stateBtn=NORMAL;
		KillTimer(1);
		SendMessage(WM_NCPAINT,0,0);
		return;

	}

	rcT=m_rcAutoHideBtn;
	ClientToScreen(rcT);
	if (rcT.PtInRect(point))
	{
	
	}

	if (m_stateAHBtn ==PRESS)
	{
		m_stateAHBtn=NORMAL;
		KillTimer(1);
		SendMessage(WM_NCPAINT,0,0);
		return;
	}
	

	Default();
}
開發者ID:axxapp,項目名稱:winxgui,代碼行數:78,代碼來源:CContainer.cpp

示例4: Default

LRESULT CSCWListCtrl::OnSetFont(WPARAM, LPARAM)
{
  LRESULT res = Default();
  UpdateRowHeight(false);
  return res;
}
開發者ID:Sp1l,項目名稱:pwsafe,代碼行數:6,代碼來源:SCWListCtrl.cpp

示例5: Default

void Transport_ReceiveFSMState::SendTransition(Transport_ReceiveFSMContext& context)
{
    Default(context);
    return;
}
開發者ID:nikola-v,項目名稱:jaustoolset,代碼行數:5,代碼來源:Transport_ReceiveFSM_sm.cpp

示例6: Default

LRESULT CXTPMDIClientWnd::OnMDICreate(WPARAM /*wParam*/, LPARAM /*lParam*/)
{
	LRESULT lResult = Default();
	m_pMDIWndTab->OnMDICreate((HWND)lResult);
	return lResult;
}
開發者ID:lai3d,項目名稱:ThisIsASoftRenderer,代碼行數:6,代碼來源:XTPMDIWndTab.cpp

示例7: FullScreen

 /**
  * Returns a default full-screen page.
  */
 static PageLayout FullScreen() {
     PageLayout pl = Default();
     pl.infobox_config.enabled = false;
     return pl;
 }
開發者ID:CnZoom,項目名稱:XcSoarPull,代碼行數:8,代碼來源:PageSettings.hpp

示例8: Default

 void AdditionServerServiceDef_additionServerFSMState::QueryAdditionTransition(AdditionServerServiceDef_additionServerFSMContext& context, QueryAddition msg, unsigned int sender)
 {
     Default(context);
     return;
 }
開發者ID:lavernw,項目名稱:jaustoolset,代碼行數:5,代碼來源:AdditionServerServiceDef_additionServerFSM_sm.cpp

示例9: JITDISABLE

void Jit64::reg_imm(UGeckoInstruction inst)
{
	INSTRUCTION_START
	JITDISABLE(Integer)
	u32 d = inst.RD, a = inst.RA, s = inst.RS;
	switch (inst.OPCD)
	{
	case 14:  // addi
		// occasionally used as MOV - emulate, with immediate propagation
		if (gpr.R(a).IsImm() && d != a && a != 0) {
			gpr.SetImmediate32(d, (u32)gpr.R(a).offset + (u32)(s32)(s16)inst.SIMM_16);
		} else if (inst.SIMM_16 == 0 && d != a && a != 0) {
			gpr.Lock(a, d);
			gpr.BindToRegister(d, false, true);
			MOV(32, gpr.R(d), gpr.R(a));
			gpr.UnlockAll();
		} else {
			regimmop(d, a, false, (u32)(s32)inst.SIMM_16,  Add, &XEmitter::ADD); //addi
		}
		break;
	case 15:
		if (a == 0) {	// lis
			// Merge with next instruction if loading a 32-bits immediate value (lis + addi, lis + ori)
			if (!js.isLastInstruction && !Core::g_CoreStartupParameter.bEnableDebugging) {
				if ((js.next_inst.OPCD == 14) && (js.next_inst.RD == d) && (js.next_inst.RA == d)) {      // addi
					gpr.SetImmediate32(d, ((u32)inst.SIMM_16 << 16) + (u32)(s32)js.next_inst.SIMM_16);
					js.downcountAmount++;
					js.skipnext = true;
					break;
				}
				else if ((js.next_inst.OPCD == 24) && (js.next_inst.RA == d) && (js.next_inst.RS == d))	{ // ori
					gpr.SetImmediate32(d, ((u32)inst.SIMM_16 << 16) | (u32)js.next_inst.UIMM);
					js.downcountAmount++;
					js.skipnext = true;
					break;
				}
			}

			// Not merged
			regimmop(d, a, false, (u32)inst.SIMM_16 << 16, Add, &XEmitter::ADD);
		}
		else {	// addis
			regimmop(d, a, false, (u32)inst.SIMM_16 << 16, Add, &XEmitter::ADD);
		}
		break;
	case 24: 
		if (a == 0 && s == 0 && inst.UIMM == 0 && !inst.Rc)  //check for nop
		{NOP(); return;} //make the nop visible in the generated code. not much use but interesting if we see one.
		regimmop(a, s, true, inst.UIMM, Or, &XEmitter::OR); 
		break; //ori
	case 25: regimmop(a, s, true, inst.UIMM << 16, Or,  &XEmitter::OR, false); break;//oris
	case 28: regimmop(a, s, true, inst.UIMM,       And, &XEmitter::AND, true); break;
	case 29: regimmop(a, s, true, inst.UIMM << 16, And, &XEmitter::AND, true); break;
	case 26: regimmop(a, s, true, inst.UIMM,       Xor, &XEmitter::XOR, false); break; //xori
	case 27: regimmop(a, s, true, inst.UIMM << 16, Xor, &XEmitter::XOR, false); break; //xoris
	case 12: regimmop(d, a, false, (u32)(s32)inst.SIMM_16, Add, &XEmitter::ADD, false, true); break; //addic
	case 13: regimmop(d, a, true, (u32)(s32)inst.SIMM_16, Add, &XEmitter::ADD, true, true); break; //addic_rc
	default:
		Default(inst);
		break;
	}
}
開發者ID:Everscent,項目名稱:dolphin-emu,代碼行數:62,代碼來源:Jit_Integer.cpp

示例10: Default

CStdNoGfx::CStdNoGfx()
{
	Default();
}
開發者ID:Meowtimer,項目名稱:openclonk,代碼行數:4,代碼來源:C4DrawT.cpp

示例11: Default

	void ThreadPool::WaitAndDie(void)
	{
		Default().DoWaitAndDie();
	}
開發者ID:Yalir,項目名稱:Awl,代碼行數:4,代碼來源:ThreadPool.cpp

示例12: Default

	void StoplightState::Timeout(StoplightContext<Stoplight>& context, LightColors t) {
	     Default(context);
	}
開發者ID:Kampbell,項目名稱:ISODE,代碼行數:3,代碼來源:Stoplight_sm.cpp

示例13: Default

LRESULT CMyView::OnSetFont(LPARAM,WPARAM)
{
   LRESULT res =  Default();
   SetMode();
	return res;
}
開發者ID:BackupTheBerlios,項目名稱:arnold,代碼行數:6,代碼來源:MyView.cpp

示例14: Default

LRESULT CRulerRichEdit::OnIMEEndComposition(WPARAM /*wp*/, LPARAM /*lp*/)
{
	m_bIMEComposing = FALSE;

	return Default();
}
開發者ID:jithuin,項目名稱:infogeezer,代碼行數:6,代碼來源:RulerRichEdit.cpp

示例15: Default

ON_3dmObjectAttributes::ON_3dmObjectAttributes()
{
  Default();
}
開發者ID:Alpha-Kand,項目名稱:qcad,代碼行數:4,代碼來源:opennurbs_3dm_attributes.cpp


注:本文中的Default函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。