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


C++ UpdateLayout函数代码示例

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


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

示例1: UpdateLayout

void
RowFormWidget::Show(const PixelRect &rc)
{
  PanelControl &panel = *(PanelControl *)GetWindow();
  panel.Move(rc);

  UpdateLayout();

  panel.Show();
}
开发者ID:damianob,项目名称:xcsoar,代码行数:10,代码来源:RowFormWidget.cpp

示例2: UpdateLayout

void
RowFormWidget::SetRowAvailable(unsigned i, bool available)
{
  Row &row = rows[i];
  if (available == row.available)
    return;

  row.available = available;
  UpdateLayout();
}
开发者ID:nkgautam,项目名称:XCSoar,代码行数:10,代码来源:RowFormWidget.cpp

示例3: UISetCheck

void CMainFrame::OnViewToolBar(UINT uNotifyCode, int nID, CWindow wndCtl)
{
	static BOOL bVisible = TRUE;	// initially visible
	bVisible = !bVisible;
	CReBarCtrl rebar = m_hWndToolBar;
	int nBandIndex = rebar.IdToIndex(ATL_IDW_BAND_FIRST + 1);	// toolbar is 2nd added band
	rebar.ShowBand(nBandIndex, bVisible);
	UISetCheck(ID_VIEW_TOOLBAR, bVisible);
	UpdateLayout();
}
开发者ID:moon-sky,项目名称:fishjam-template-library,代码行数:10,代码来源:MainFrm.cpp

示例4: UpdateLayout

VOID CDUITreeViewImpl::OnItemClick(const DUIEvent& info)
{
	HDUITREEITEM	hItem = (HDUITREEITEM)info.pSender;
	if ( hItem && hItem->HaveChild() )
	{
		hItem->SetExpand(!hItem->IsExpand());

		UpdateLayout(TRUE);
	}
}
开发者ID:achellies,项目名称:DUI,代码行数:10,代码来源:DUITreeView.cpp

示例5: UpdateLayout

bool CHUDTimer::Init()
{
	UpdateLayout();

	Update();

	SetSourceString( LoadString("HUD_Timer_Chars"));

	return true;
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:10,代码来源:HUDTimer.cpp

示例6: GetWindow

void
RowFormWidget::Show(const PixelRect &rc)
{
  Window &panel = GetWindow();
  panel.Move(rc);

  UpdateLayout();

  panel.Show();
}
开发者ID:nkgautam,项目名称:XCSoar,代码行数:10,代码来源:RowFormWidget.cpp

示例7: Update

void
TrafficWidget::Show(const PixelRect &rc)
{
  // Update Radar and Selection for the first time
  Update();

  ContainerWidget::Show(rc);
  UpdateLayout();

  CommonInterface::GetLiveBlackboard().AddListener(*this);
}
开发者ID:StefanL74,项目名称:XCSoar,代码行数:11,代码来源:BigTrafficWidget.cpp

示例8: UpdateLayout

void
WndForm::OnCreate()
{
  ContainerWindow::OnCreate();

  UpdateLayout();

  WindowStyle client_style;
  client_style.ControlParent();
  client_area.Create(*this, client_rect, look.background_color, client_style);
}
开发者ID:Andy-1954,项目名称:XCSoar,代码行数:11,代码来源:Form.cpp

示例9: UpdateLayout

bool CHUDScoreDiff::Init()
{
	UpdateLayout();

	EnableFade(false);
	
	SetSourceString( LoadString("HUD_Score_Chars"));

	return true;

}
开发者ID:Arc0re,项目名称:lithtech,代码行数:11,代码来源:HUDScoreDiff.cpp

示例10: invalidate

void
WndForm::SetTitleFont(const Font &font)
{
  if (mhTitleFont != &font){
    // todo
    mhTitleFont = &font;

    invalidate();
    UpdateLayout();
  }
}
开发者ID:Mrdini,项目名称:XCSoar,代码行数:11,代码来源:Form.cpp

示例11: UpdateLayout

LRESULT 
CHelperbarWindow::OnWindowPosChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	WINDOWPOS * lpwndpos = (WINDOWPOS *) lParam;
	if (!(lpwndpos->flags & SWP_NOSIZE))
	{
		UpdateLayout();
		bHandled = TRUE;
	}
	return 0;
}
开发者ID:chzh,项目名称:xrefresh,代码行数:11,代码来源:HelperbarWindow.cpp

示例12: InteractiveValueChanged

void nuiSlider::DoInvalidate(const nuiEvent& rEvent)
{
  //ValueChanged();
  InteractiveValueChanged();
  if (!mInteractiveValueChanged)
    ValueChanged();
  
  // mInteractiveValueChanged = true;
  
  UpdateLayout();
}
开发者ID:YetToCome,项目名称:nui3,代码行数:11,代码来源:nuiSlider.cpp

示例13: UISetCheck

LRESULT CMainFrame::OnViewToolBar(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	static BOOL bVisible = TRUE;	// initially visible
	bVisible = !bVisible;
	CReBarCtrl rebar = m_hWndToolBar;
	int nBandIndex = rebar.IdToIndex(ATL_IDW_BAND_FIRST + 1);	// toolbar is 2nd added band
	rebar.ShowBand(nBandIndex, bVisible);
	UISetCheck(ID_VIEW_TOOLBAR, bVisible);
	UpdateLayout();
	return 0;
}
开发者ID:Nuos,项目名称:codeproject,代码行数:11,代码来源:MainFrm.cpp

示例14: memset

LTBOOL CHUDWpnChooser::Init()
{
    // get first and last weapon indices
    uint8 nFirstWeaponCommandId = g_pWeaponMgr->GetFirstWeaponCommandId();
    uint8 nLastWeaponCommandId = g_pWeaponMgr->GetLastWeaponCommandId();
    uint8 nWeaponCount[kMaxClasses];
    memset(nWeaponCount,0,sizeof(nWeaponCount));
    for (uint8 nWpnCommandId = nFirstWeaponCommandId; nWpnCommandId <= nLastWeaponCommandId; nWpnCommandId++)
    {
        uint8 nWpn = g_pWeaponMgr->GetWeaponId( nWpnCommandId );

        if (g_pWeaponMgr->IsPlayerWeapon(nWpn))
        {
            // get the weapon data struct
            uint8 nClass = g_pWeaponMgr->GetWeaponClass( nWpn ) - 1;
            if (nClass < kMaxClasses && nWeaponCount[nClass] < kMaxItemsPerClass)
            {
                m_nWeaponID[nClass][nWeaponCount[nClass]] = nWpn;
                nWeaponCount[nClass]++;
            }

        }
    }

    UpdateLayout();


    for( uint8 i = 0; i < kMaxClasses; ++i )
    {
        g_pDrawPrim->SetRGBA( &m_ClassPoly[i], argbWhite );

        for (uint8 n = nWeaponCount[i]; n < kMaxItemsPerClass; n++)
        {
            m_nWeaponID[i][n] = WMGR_INVALID_ID;
        }
    }
    for( i = 0; i < kMaxItemsPerClass; ++i )
    {
        g_pDrawPrim->SetRGBA( &m_ItemPoly[i], argbWhite );

        m_hItemIcon[i] = NULL;

    }

    uint8 nFont = g_pLayoutMgr->GetHUDFont();
    CUIFont* pFont = g_pInterfaceResMgr->GetFont(nFont);

    m_pStr = g_pFontManager->CreateFormattedPolyString(pFont,"",0.0f, 0.0f);
    m_pStr->SetColor(m_TextColor);



    return LTTRUE;
}
开发者ID:rickyharis39,项目名称:nolf2,代码行数:54,代码来源:HUDChooser.cpp

示例15: getstack

void MCPrinter::DoLayout(MCCard *p_first_card, uint32_t p_number_of_cards, const MCRectangle& p_src_rect, bool p_marked)
{
    if (m_loop_nesting > 0 && m_loop_status == STATUS_READY)
    {
        MCStack *t_card_owner;
        t_card_owner = p_first_card -> getstack();

        // MW-2010-10-04: We should back up the *current* card of the stack, to restore after layout.
        MCCard *t_old_card;
        t_old_card = t_card_owner -> getcard(0);

        Boolean t_old_lock;
        t_old_lock = MClockmessages;

        // Lock messages, as we do not want any opencard messages etc. to be sent when cycling cards.
        MClockmessages = True;

        uint32_t t_number_cards_left;
        t_number_cards_left = p_number_of_cards;

        MCCard *t_current_card;
        t_current_card = p_first_card;

        while(t_number_cards_left > 0 && m_loop_status == STATUS_READY)
        {
            // Set the card of the stack.
            t_card_owner -> setcard(t_current_card, False, False);

            /// Calculate the layout for this card, and do a page break if required
            MCRectangle t_dst_rect;
            if (CalculateLayout(p_src_rect, t_dst_rect))
                DoPageBreak();

            // Print the card
            DoPrint(t_current_card, p_src_rect, t_dst_rect);

            UpdateLayout(t_dst_rect);

            // Advance card
            do
            {
                t_current_card = t_current_card -> next();
            }
            while(!t_current_card -> countme(0, p_marked)); // Skip marked cards if p_marked is true

            t_number_cards_left -= 1;
        }

        // Reset old state.
        t_card_owner -> setcard(t_old_card, False, False);
        MClockmessages = t_old_lock;
    }
}
开发者ID:runrevben,项目名称:livecode,代码行数:53,代码来源:printer.cpp


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