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


C++ SetResize函数代码示例

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


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

示例1: GetDlgItem

BOOL CDlgDepartureSlotSpec::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();
	
	CRect rectFltToolbar;
	GetDlgItem(IDC_STATIC_TOOLBAR)->GetWindowRect(&rectFltToolbar);
	ScreenToClient(&rectFltToolbar);
	m_wndFltToolbar.MoveWindow(&rectFltToolbar, true);
	m_wndFltToolbar.GetToolBarCtrl().EnableButton(ID_DEPSLOT_ADD, TRUE);
	m_wndFltToolbar.GetToolBarCtrl().HideButton(ID_DEPSLOT_EDIT, TRUE);
	m_wndFltToolbar.GetToolBarCtrl().EnableButton(ID_DEPSLOT_DEL, TRUE);

	SetResize(m_wndFltToolbar.GetDlgCtrlID(), SZ_TOP_LEFT, SZ_TOP_LEFT);
	SetResize(IDC_LISTBOX, SZ_TOP_LEFT , SZ_BOTTOM_RIGHT);
	SetResize(IDSAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);

	InitListCtrl();
	GetDlgItem(IDSAVE)->EnableWindow(FALSE);

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;
}
开发者ID:chenbk85,项目名称:tphProjects,代码行数:26,代码来源:DlgDepartureSlotSpec.cpp

示例2: SetResize

BOOL CDlgIntersectionNodeBlock::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();

	DWORD dwStyle = m_lstNodeOption.GetExtendedStyle();
	dwStyle |= LVS_EX_FULLROWSELECT|LVS_EX_HEADERDRAGDROP|LVS_EX_GRIDLINES;
	m_lstNodeOption.SetExtendedStyle( dwStyle );
	m_wndSortableHeaderCtrl.SubclassWindow(m_lstNodeOption.GetHeaderCtrl()->m_hWnd );

	// Create column
	m_lstNodeOption.InsertColumn( 0, "Node ID", LVCFMT_CENTER, 70 );
	m_wndSortableHeaderCtrl.SetDataType( 0, dtINT );

	m_lstNodeOption.InsertColumn( 1, "Node Name", LVCFMT_CENTER, 240 );
	m_wndSortableHeaderCtrl.SetDataType( 1, dtSTRING );

	m_lstNodeOption.InsertColumn( 2, "Block", LVCFMT_CENTER, 80 );
	m_wndSortableHeaderCtrl.SetDataType( 2, dtINT );

	SetResize(IDC_LIST_NODEBLOCK, SZ_TOP_LEFT,SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);

	InitNodeOption();

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;  
}
开发者ID:chenbk85,项目名称:tphProjects,代码行数:30,代码来源:DlgIntersectionNodeBlock.cpp

示例3: GetDlgItem

// CDlgDeiceQueue message handlers
BOOL CDlgDeiceQueue::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();
	m_QueueList->ReadData(m_nProjID);
	GetDlgItem(IDC_BUTTON_SAVE)->EnableWindow(FALSE);
	DisplayDeicePad();
	OnInitToolbar();
	m_wndDeicePadToolbar.GetToolBarCtrl().EnableButton(ID_TOOLBAR_DEL,FALSE);
	m_wndQueueToolbar.GetToolBarCtrl().EnableButton(ID_TOOLBAR_QUEUE_ADD,FALSE);
	m_wndQueueToolbar.GetToolBarCtrl().EnableButton(ID_TOOLBAR_QUEUE_DEL,FALSE);
	GetAllDeicePad();

	m_wndQueueToolbar.SetDlgCtrlID(m_wndDeicePadToolbar.GetDlgCtrlID()+1);
	SetResize(m_wndDeicePadToolbar.GetDlgCtrlID(), SZ_TOP_LEFT, SZ_TOP_LEFT);
	SetResize(m_wndQueueToolbar.GetDlgCtrlID(), SZ_TOP_CENTER, SZ_BOTTOM_CENTER);
	SetResize(IDC_STATIC_QUEUE, SZ_TOP_LEFT, SZ_BOTTOM_CENTER);
	SetResize(IDC_LIST_DEICEPAD, SZ_TOP_LEFT, SZ_BOTTOM_CENTER);
	SetResize(IDC_STATIC_PATH, SZ_TOP_CENTER, SZ_BOTTOM_RIGHT);
	SetResize(IDC_TREE_ROUTEPATH, SZ_TOP_CENTER, SZ_BOTTOM_RIGHT);
	SetResize(IDC_BUTTON_SAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);
	return TRUE;
}
开发者ID:chenbk85,项目名称:tphProjects,代码行数:28,代码来源:DlgDeiceQueue.cpp

示例4: VERIFY

BOOL CPaneHierarchy::OnInitDialog()
{
	gkToolBarPaneBase::OnInitDialog();


	VERIFY(m_wndTreeHierarchy.Create(WS_VISIBLE|TVS_HASBUTTONS|TVS_LINESATROOT, CXTPEmptyRect(), this, 38985));
	m_wndTreeHierarchy.SetItemHeight(18);
	m_wndTreeHierarchy.SetOwner(this);
	// TreeCtrl must be already created.
	CMFCUtils::LoadTrueColorImageList( m_imageList,IDB_SKB_ICONLIST,16,RGB(255,255,255) );
	m_wndTreeHierarchy.SetImageList(&m_imageList,TVSIL_NORMAL);



	SetResize(IDC_TODSLIDER,       SZ_TOP_LEFT, SZ_TOP_RIGHT);

	//RefreshMetrics(TRUE);



 	RegisterPane(&m_wndTreeHierarchy, _T("Tree"), xtpPaneDockBottom);
 	OpenPane(_T("Tree"));
// 
// 	RegisterPane(&m_wndPropertyGrid, _T("Time Of Day Properties"), xtpPaneDockBottom);
// 	OpenPane(_T("Time Of Day Properties"));

	InitToolBar(_T("ToolBar_Hierarchy"), IDR_TOOLBAR_HIERARCHY);

	return TRUE;
}
开发者ID:CheryJazz,项目名称:gkEngine,代码行数:30,代码来源:PaneHierarchy.cpp

示例5: SetResize

int FrameScaler::Resize(BYTE *src,DWORD srcWidth,DWORD srcHeight,BYTE *dst,DWORD dstWidth,DWORD dstHeight)
{
	//If sizes are the inot same
	if (srcWidth!=dstWidth ||srcHeight!=dstHeight)
	{
		//Set resize with full image
		SetResize(srcWidth,srcHeight,srcWidth,dstWidth,dstHeight,dstWidth);
		//Calc pointers
		DWORD srcPixels = srcWidth*srcHeight;
		BYTE *srcY = src;
		BYTE *srcU = src+srcPixels;
		BYTE *srcV = src+srcPixels*5/4;
		DWORD dstPixels = dstWidth*dstHeight;
		BYTE *dstY = dst;
		BYTE *dstU = dst+dstPixels;
		BYTE *dstV = dst+dstPixels*5/4;

		//Resize imgae
		Resize(srcY,srcU,srcV,dstY,dstU,dstV);
	} else {
		//Just copy
		memcpy(dst,src,srcWidth*srcHeight*3/2);
	}

	return 1;
}
开发者ID:chenxiuheng,项目名称:mcumediaserver,代码行数:26,代码来源:framescaler.cpp

示例6: ModifyStyleEx

BOOL CBackstagePageRecent::OnInitDialog() 
{
	CXTPRibbonBackstagePage::OnInitDialog();
	
	ModifyStyleEx(0, WS_EX_CONTROLPARENT);
	
	
	m_lblRecent.SetFont(&m_fntCaption);
	m_lblRecent.SetTextColor(RGB(94, 94, 94));
	

	SetResize(IDC_SEPARATOR_1, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_RECENTFILELIST, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMRIGHT);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
开发者ID:CheryJazz,项目名称:gkEngine,代码行数:17,代码来源:BackstagePageRecent.cpp

示例7: ModifyStyleEx

BOOL CBackstagePageSave::OnInitDialog() 
{
	CXTPRibbonBackstagePage::OnInitDialog();
	
	ModifyStyleEx(0, WS_EX_CONTROLPARENT);
	
	
	m_lblSaveAndSend.SetFont(&m_fntCaption);
	m_lblSaveAndSend.SetTextColor(RGB(94, 94, 94));
	
	m_lblFileTypes.SetFont(&m_fntCaption);
	m_lblFileTypes.SetTextColor(RGB(94, 94, 94));

	m_lblSeparator4.SetVerticalStyle(TRUE);

	InitButton(m_btnSendEmail);
	InitButton(m_btnSaveToWeb);
	InitButton(m_btnSaveToSharePoint);
	InitButton(m_btnPublish);
	InitButton(m_btnChangeFileType);
	InitButton(m_btnCreatePDF);
	
	SetResize(IDC_SEPARATOR_4, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMLEFT);


	CXTPWindowRect rcPage(GetDlgItem(IDC_STATIC_PAGE));
	ScreenToClient(rcPage);
	
	m_pageSaveEmail.Create(CBackstagePageSaveEmail::IDD, this);
	m_pageSaveEmail.SetDlgCtrlID(CBackstagePageSaveEmail::IDD);

	m_pageSaveEmail.MoveWindow(rcPage);
	m_pageSaveEmail.ShowWindow(SW_SHOWNORMAL);
	
	m_pageSaveWeb.Create(CBackstagePageSaveWeb::IDD, this);
	m_pageSaveWeb.MoveWindow(rcPage);
	m_pageSaveWeb.SetDlgCtrlID(CBackstagePageSaveWeb::IDD);

	SetResize(CBackstagePageSaveEmail::IDD, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMRIGHT);
	SetResize(CBackstagePageSaveWeb::IDD, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMRIGHT);


	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
开发者ID:CheryJazz,项目名称:gkEngine,代码行数:45,代码来源:BackstagePageSave.cpp

示例8: InitToolBar

BOOL CDlgItinerantTraffic::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();

	InitToolBar();
	InitListCtrl();
	GetAllStand();
	m_pItinerantFlightList->SetAirportDB(m_pInputAirside->m_pAirportDB);
	m_pItinerantFlightSchedule->SetAirportDB(m_pInputAirside->m_pAirportDB);

	m_pItinerantFlightList->ReadData(m_nProjID);
	m_pItinerantFlightSchedule->ReadData(m_nProjID);

	SetListContent();
	GetDlgItem(IDC_SAVE)->EnableWindow(FALSE);

	SetResize(IDC_STATIC_AREA, SZ_TOP_LEFT , SZ_BOTTOM_RIGHT);
	SetResize(IDC_LIST_CONTENTS, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);
	SetResize(IDC_VIEW_SCHEDULE, SZ_BOTTOM_LEFT , SZ_BOTTOM_LEFT);
	SetResize(IDC_UPDATE_SCHEDULE,SZ_BOTTOM_LEFT,SZ_BOTTOM_LEFT);

	SetResize(IDC_SAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);	

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;
}
开发者ID:chenbk85,项目名称:tphProjects,代码行数:30,代码来源:DlgItinerantTraffic.cpp

示例9: GetClientRect

BOOL CTestDlg::OnInitDialog()
{
	CBaseDialog::OnInitDialog();

	CRect rect;
	GetClientRect(&rect);
	m_TestManTab.MoveWindow(rect);

	ControlsResizeProp item;

	// 设置“标签控件”的“可伸缩属性”
	m_TestManTab.GetClientRect(rect);
	item.ID = IDC_TestMan_Tab;
	item.ptOrigPosBps = rect.TopLeft();			// 重定位基点是左上顶点
	item.ctmXofPosBps = tmNotChange;			// 基点x坐标按比例放大
	item.ctmYofPosBps = tmNotChange;			// 基点y轴按比例放大
	item.ctmWigth = tmQuantity;					// 控件宽度按比例缩放
	item.ctmHight = tmQuantity;					// 控件长度按比例缩放
	SetResize(item);

	m_TestManTab.InsertItem(ViewReagentArea,_T("试剂区配置"));
	m_TestManTab.InsertItem(ViewSampleArea,_T("样本区配置"));
	m_TestManTab.InsertItem(ViewTestConfirm,_T("新测试确认"));
	m_TestManTab.InsertItem(ViewMonitor,_T("测试进度监控"));

	
	CRect rcTabs;
	m_TestManTab.GetClientRect(&rcTabs);
	rcTabs.left += m_TestManTab.GetHeaderWidth();

	// 创建“试剂区配置”对话框,并设置为初始显示状态
	CReagentAreaManDlg * pReagentAreaManDlg = new CReagentAreaManDlg(&m_TestManTab);
	pReagentAreaManDlg->Create(IDD_ReagentAreaMan_Dlg,&m_TestManTab);
	m_mapChildViews[ViewReagentArea] = pReagentAreaManDlg;
	m_mapChildViews[ViewReagentArea]->MoveWindow(&rcTabs);
	m_mapChildViews[ViewReagentArea]->ShowWindow(SW_SHOW);

	// 创建“样本区配置”对话框
	CSampleAreaManDlg * pSampleAreaManDlg = new CSampleAreaManDlg(&m_TestManTab);
	pSampleAreaManDlg->Create(IDD_SampleAreaMan_Dlg,&m_TestManTab);
	m_mapChildViews[ViewSampleArea] = pSampleAreaManDlg;
	m_mapChildViews[ViewSampleArea]->MoveWindow(&rcTabs);

	// 创建“测试确认”对话框
	CNewTestConfirmDlg * pNewTestConfirmDlg = new CNewTestConfirmDlg(&m_TestManTab);
	pNewTestConfirmDlg->Create(IDD_NewTestConfirm_Dlg,&m_TestManTab);
	m_mapChildViews[ViewTestConfirm] = pNewTestConfirmDlg;
	m_mapChildViews[ViewTestConfirm]->MoveWindow(&rcTabs);

	// 创建“测试监控”对话框
	CTestMonitorDlg * pTestMonitorDlg = new CTestMonitorDlg(&m_TestManTab);
	pTestMonitorDlg->Create(IDD_TestMonitor_Dlg,&m_TestManTab);
	m_mapChildViews[ViewMonitor] = pTestMonitorDlg;
	m_mapChildViews[ViewMonitor]->MoveWindow(&rcTabs);
	return TRUE;
}
开发者ID:cuizhilei,项目名称:autolab,代码行数:56,代码来源:TestDlg.cpp

示例10: RefreshToolbarsList

BOOL CXTPCustomizeToolbarsPage::OnInitDialog()
{
	CXTPPropertyPage::OnInitDialog();

	if (m_pSheet->GetCommandBars()->IsLayoutRTL())
	{
		m_checkList.ModifyStyleEx(0, WS_EX_LAYOUTRTL);
	}

	RefreshToolbarsList();

	m_btnNew.EnableWindow(m_bAllowNewToolbars);

	SetResize(XTP_IDC_LIST_TOOLBARS, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMRIGHT);
	SetResize(XTP_IDC_BUTTON_RENAME, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_TOPRIGHT);
	SetResize(XTP_IDC_BUTTON_NEW, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_TOPRIGHT);
	SetResize(XTP_IDC_BUTTON_DELETE, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_TOPRIGHT);
	SetResize(XTP_IDC_BUTTON_RESET, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_TOPRIGHT);

	return FALSE;
}
开发者ID:killbug2004,项目名称:ghost2013,代码行数:21,代码来源:XTPCustomizeToolbarsPage.cpp

示例11: SetIcon

// CPaneDialog message handlers
BOOL CPaneDialog::OnInitDialog()
{
	CPropertyGridDlgBase::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);         // Set big icon
	SetIcon(m_hIcon, FALSE);        // Set small icon

	CRect rcWorkspace;//GetDlgItem(IDC_STATIC)
	this->GetWindowRect(rcWorkspace);
	ScreenToClient(rcWorkspace);

	if ( m_wndPropertyGrid.Create( rcWorkspace, this, IDC_PROPERTY_GRID ) )
	{
		m_wndPropertyGrid.SetVariableItemsHeight(TRUE);

		LOGFONT lf;
		GetFont()->GetLogFont( &lf );

		// create document settings category.
		CXTPPropertyGridItem* pSettings        = m_wndPropertyGrid.AddCategory(_T("Document Settings"));
		m_wndPropertyGrid.SetTheme(xtpGridThemeNativeWinXP);

		pSettings->SetTooltip(_T("Document Settings Category"));

		// add child items to category.
		CXTPPropertyGridItem* pItemSaveOnClose = pSettings->AddChildItem(new CXTPPropertyGridItemBool(_T("SaveOnClose"), TRUE));
		pSettings->AddChildItem(new CXTPPropertyGridItemFont(_T("WindowFont"), lf));
		pSettings->AddChildItem(new CXTPPropertyGridItemSize(_T("WindowSize"), CSize(100, 100)));

		pSettings->Expand();
		pItemSaveOnClose->Select();

		// create global settings category.
		CXTPPropertyGridItem* pGlobals      = m_wndPropertyGrid.AddCategory(_T("Global Settings"));

		// add child items to category.
		CXTPPropertyGridItem* pItemGreeting = pGlobals->AddChildItem(new CXTPPropertyGridItem(_T("Greeting Text"), _T("Welcome to your application!")));
		pGlobals->AddChildItem(new CXTPPropertyGridItemNumber(_T("ItemsInMRUList"), 4));
		CXTPPropertyGridItem* pItemRate     = pGlobals->AddChildItem(new CXTPPropertyGridItemNumber(_T("MaxRepeatRate"), 10));
		pGlobals->AddChildItem(new CXTPPropertyGridItemColor(_T("ToolbarColor"), RGB(255, 192,128)));

		pItemGreeting->SetReadOnly(TRUE);
		pItemRate->SetDescription(_T("The rate in milliseconds that the text will repeat."));
	}

	// Set control resizing.
	SetResize(IDC_PROPERTY_GRID, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_BOTTOMRIGHT);

	return TRUE;  // return TRUE  unless you set the focus to a control
}
开发者ID:DSPNerd,项目名称:nebula3,代码行数:53,代码来源:PaneDialog.cpp

示例12: InitToolBar

BOOL CDlgTaxiwayConstraint::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();

	InitToolBar();
	InitListCtrlEx();
	SetListCtrlEx();
	GetAllTaxiway();
	LoadData();	
	//-----------------------------------------------------------------/
	SetResize(m_taxiwayToolBar.GetDlgCtrlID(), SZ_TOP_LEFT, SZ_TOP_LEFT);
	SetResize(m_dataToolBar.GetDlgCtrlID(), SZ_TOP_CENTER, SZ_BOTTOM_CENTER);
	SetResize(IDC_GROUPBOX_TAXIWAY, SZ_TOP_LEFT, SZ_BOTTOM_CENTER);
	SetResize(IDC_LIST_TAXIWAY, SZ_TOP_LEFT, SZ_BOTTOM_CENTER);
	SetResize(IDC_GROUPBOX_CONSTRAINT, SZ_TOP_CENTER, SZ_BOTTOM_RIGHT);
	SetResize(IDC_LIST_DATA, SZ_TOP_CENTER, SZ_BOTTOM_RIGHT);
	SetResize(IDC_BUTTON_SAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDC_BTN_WS_ADJCONS, SZ_BOTTOM_LEFT, SZ_BOTTOM_LEFT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	if(m_emType == WingSpanConstraint)
	{
		GetDlgItem(IDC_BTN_WS_ADJCONS)->ShowWindow(SW_SHOW);
	}
	else
	{
		GetDlgItem(IDC_BTN_WS_ADJCONS)->ShowWindow(SW_HIDE);

	}
	
	
	//-----------------------------------------------------------------/

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;
}
开发者ID:chenbk85,项目名称:tphProjects,代码行数:38,代码来源:DlgTaxiwayConstraint.cpp

示例13: UpdateConfig

void UpdateConfig (void)
{
	SetResize(CurrentConfig.Resize);
	SetAspect(CurrentConfig.Aspect);
	SetScanLines(CurrentConfig.ScanLines);
	SetFrameSkip(CurrentConfig.FrameSkip);
	SetAutoStart(CurrentConfig.AutoStart);
	SetSpeedThrottle(CurrentConfig.SpeedThrottle);
	SetCPUMultiplyer(CurrentConfig.CPUMultiplyer);
	SetRamSize(CurrentConfig.RamSize);
	SetCpuType(CurrentConfig.CpuType);
	SetMonitorType(CurrentConfig.MonitorType);
	SetCartAutoStart(CurrentConfig.CartAutoStart);
	if (CurrentConfig.RebootNow)
	{
		DoReboot();
	}
	CurrentConfig.RebootNow = 0;
}
开发者ID:VCCE,项目名称:VCC,代码行数:19,代码来源:config.c

示例14: ModifyStyleEx

BOOL CBackstagePageInfo::OnInitDialog() 
{
	CXTPRibbonBackstagePage::OnInitDialog();

	ModifyStyleEx(0, WS_EX_CONTROLPARENT);

	m_lblInformation.SetFont(&m_fntTitle);
	m_lblInformation.SetTextColor(RGB(59, 59, 59));
	
	m_lblPermissions.SetFont(&m_fntCaption);
	m_lblPermissions.SetTextColor(RGB(94, 94, 94));

	m_lblPrepareForSharing.SetFont(&m_fntCaption);
	m_lblPrepareForSharing.SetTextColor(RGB(94, 94, 94));
	
	m_lblVersions.SetFont(&m_fntCaption);
	m_lblVersions.SetTextColor(RGB(94, 94, 94));


	m_lblSeparator4.SetVerticalStyle(TRUE);

	InitButton(IDC_BUTTON_PROTECTDOCUMENT, TRUE);
	InitButton(IDC_BUTTON_CHECKFORISSUE, TRUE);
	InitButton(IDC_BUTTON_MANAGEVERSIONS, FALSE);

	SetResize(IDC_SEPARATOR_1, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_SEPARATOR_2, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_SEPARATOR_3, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_SEPARATOR_4, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_BOTTOMRIGHT);

	SetResize(IDC_STATIC_PREVIEW, XTP_ANCHOR_TOPRIGHT, XTP_ANCHOR_TOPRIGHT);
	

	SetResize(IDC_TEXT1, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_TEXT2, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);
	SetResize(IDC_TEXT3, XTP_ANCHOR_TOPLEFT, XTP_ANCHOR_TOPRIGHT);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
开发者ID:CheryJazz,项目名称:gkEngine,代码行数:40,代码来源:BackstagePageInfo.cpp

示例15: SetResize

// CPluginsDialog message handlers
BOOL CPluginsDialog::OnInitDialog()
{

	CXTResizeDialog::OnInitDialog();

	SetResize(IDC_PLUGINS_LIST, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);

	PluginsList.InsertColumn(0, _T("ID"),   LVCFMT_LEFT, 125);
	PluginsList.InsertColumn(1, _T("Name"),   LVCFMT_LEFT, 125);
	PluginsList.InsertColumn(2, _T("Status"), LVCFMT_LEFT, 125);

	HWND hWndHeader = PluginsList.GetDlgItem(0)->GetSafeHwnd();
	m_header.SubclassWindow(hWndHeader);
	m_header.EnableAutoSize(TRUE);
	m_header.ResizeColumnsToFit();

	PluginsList.ModifyExtendedStyle( 0,	LVS_EX_FULLROWSELECT  );
	PluginsList.ModifyExtendedStyle( 0,LVS_EX_GRIDLINES );
	PluginsList.EnableUserRowColor(true);
	return true;
}
开发者ID:yingzhang536,项目名称:mrayy-Game-Engine,代码行数:22,代码来源:PluginsDialog.cpp


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