本文整理汇总了C++中CDisplay::DoModal方法的典型用法代码示例。如果您正苦于以下问题:C++ CDisplay::DoModal方法的具体用法?C++ CDisplay::DoModal怎么用?C++ CDisplay::DoModal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDisplay
的用法示例。
在下文中一共展示了CDisplay::DoModal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnViewDisplaysetup
void CMainFrame::OnViewDisplaysetup()
{
// TODO: Add your command handler code here
CDisplay* pDisplay = new CDisplay;
CMCPforNTApp* pApp = (CMCPforNTApp*)AfxGetApp();
pDisplay->m_axisblue = pApp->GetProfileInt("Display","axisblue", 0);
pDisplay->m_axisgreen = pApp->GetProfileInt("Display","axisgreen", 0);
pDisplay->m_axisred = pApp->GetProfileInt("Display","axisred", 0);
pDisplay->m_axislines = pApp->GetProfileInt("Display","axislines", 4);
pDisplay->m_axistext = pApp->GetProfileInt("Display","axistext", 32);
pDisplay->m_datablue = pApp->GetProfileInt("Display","datablue", 0);
pDisplay->m_datared = pApp->GetProfileInt("Display","datared", 0);
pDisplay->m_datagreen = pApp->GetProfileInt("Display","datagreen", 0);
pDisplay->m_datalines = pApp->GetProfileInt("Display","datalines", 2);
pDisplay->m_dataxmax = pApp->GetProfileInt("Display","dataxmax", 980);
pDisplay->m_dataxmin = pApp->GetProfileInt("Display","dataxmin", 100);
pDisplay->m_dataymax = pApp->GetProfileInt("Display","dataymax", 900);
pDisplay->m_dataymin = pApp->GetProfileInt("Display","dataymin", 20);
pDisplay->m_errorbars = pApp->GetProfileInt("Display","errorbars", 5);
pDisplay->m_fitblue = pApp->GetProfileInt("Display","fitblue", 250);
pDisplay->m_fitgreen = pApp->GetProfileInt("Display","fitgreen", 0);
pDisplay->m_fitred = pApp->GetProfileInt("Display","fitred", 0);
pDisplay->m_fitfunres = pApp->GetProfileInt("Display","fitfunres", 250);
pDisplay->m_fitlines = pApp->GetProfileInt("Display","fitlines", 2);
pDisplay->m_halfticklenx = pApp->GetProfileInt("Display","halfticklenx", 8);
pDisplay->m_numbers = pApp->GetProfileInt("Display","numbers", 28);
pDisplay->m_points = pApp->GetProfileInt("Display","points", 5);
pDisplay->m_selectblue = pApp->GetProfileInt("Display","selectblue", 0);
pDisplay->m_selectgreen = pApp->GetProfileInt("Display","selectgreen", 0);
pDisplay->m_halftickleny = pApp->GetProfileInt("Display","halftickleny", 5);
pDisplay->m_selectred = pApp->GetProfileInt("Display","selectred", 250);
pDisplay->m_textblue = pApp->GetProfileInt("Display","textblue", 0);
pDisplay->m_textgreen = pApp->GetProfileInt("Display","textgreen", 0);
pDisplay->m_textred = pApp->GetProfileInt("Display","textred", 0);
pDisplay->m_ticklabelsx = pApp->GetProfileInt("Display","ticklabelsx", 905);
pDisplay->m_ticklabelsy = pApp->GetProfileInt("Display","ticklabelsy", 95);
pDisplay->m_ticklenx = pApp->GetProfileInt("Display","ticklenx", 15);
pDisplay->m_tickleny = pApp->GetProfileInt("Display","tickleny", 10);
pDisplay->m_ticklines = pApp->GetProfileInt("Display","ticklines", 3);
pDisplay->m_titleposx = pApp->GetProfileInt("Display","titleposx", 500);
pDisplay->m_titleposy = pApp->GetProfileInt("Display","titleposy", 100);
pDisplay->m_xaxistitlex = pApp->GetProfileInt("Display","xaxistitlex", 500);
pDisplay->m_xaxistitley = pApp->GetProfileInt("Display","xaxistitley", 970);
pDisplay->m_yaxistitlex = pApp->GetProfileInt("Display","yaxistitlex", 30);
pDisplay->m_yaxistitley = pApp->GetProfileInt("Display","yaxistitley", 500);
pDisplay->m_autolsi = pApp->GetProfileInt("Display","autolsi", TRUE);
pDisplay->m_autoplot = pApp->GetProfileInt("Display","autoplot", TRUE);
pDisplay->m_automonitor = pApp->GetProfileInt("Display","automonitor", FALSE);
pDisplay->m_autoscript = pApp->GetProfileInt("Display","autoscript", TRUE);
pDisplay->m_autotemplate = pApp->GetProfileInt("Display","autotemplate", TRUE);
pDisplay->m_backblue = pApp->GetProfileInt("Display","backblue", 255);
pDisplay->m_backgreen = pApp->GetProfileInt("Display","backgreen", 255);
pDisplay->m_backred = pApp->GetProfileInt("Display","backred", 255);
pDisplay->m_numberblue = pApp->GetProfileInt("Display","numberblue", 0);
pDisplay->m_numbergreen = pApp->GetProfileInt("Display","numbergreen", 0);
pDisplay->m_numberred = pApp->GetProfileInt("Display","numberred", 0);
pDisplay->m_lsidx = pApp->GetProfileInt("Display","lsidx", 500);
pDisplay->m_lsidy = pApp->GetProfileInt("Display","lsidy", 300);
pDisplay->m_lsix = pApp->GetProfileInt("Display","lsix", 100);
pDisplay->m_lsiy = pApp->GetProfileInt("Display","lsiy", 100);
pDisplay->m_plotdx = pApp->GetProfileInt("Display","plotdx", 600);
pDisplay->m_plotdy = pApp->GetProfileInt("Display","plotdy", 400);
pDisplay->m_plotx = pApp->GetProfileInt("Display","plotx", 300);
pDisplay->m_ploty = pApp->GetProfileInt("Display","ploty", 10);
pDisplay->m_monitordx = pApp->GetProfileInt("Display","monitordx", 600);
pDisplay->m_monitordy = pApp->GetProfileInt("Display","monitordy", 400);
pDisplay->m_monitorx = pApp->GetProfileInt("Display","monitorx", 300);
pDisplay->m_monitory = pApp->GetProfileInt("Display","monitory", 10);
pDisplay->m_scriptdx = pApp->GetProfileInt("Display","scriptdx", 550);
pDisplay->m_scriptdy = pApp->GetProfileInt("Display","scriptdy", 500);
pDisplay->m_scriptx = pApp->GetProfileInt("Display","scriptx", 300);
pDisplay->m_scripty = pApp->GetProfileInt("Display","scripty", 100);
pDisplay->m_templatedx = pApp->GetProfileInt("Display","templatedx", 335);
pDisplay->m_templatedy = pApp->GetProfileInt("Display","templatedy", 350);
pDisplay->m_templatex = pApp->GetProfileInt("Display","templatex", 30);
pDisplay->m_templatey = pApp->GetProfileInt("Display","templatey", 30);
if(IDOK == pDisplay->DoModal())
{
pApp->WriteProfileInt("Display","axisblue", pDisplay->m_axisblue);
pApp->AxisBlue = pDisplay->m_axisblue;
pApp->WriteProfileInt("Display","axisgreen", pDisplay->m_axisgreen);
pApp->AxisGreen = pDisplay->m_axisgreen;
pApp->WriteProfileInt("Display","axisred", pDisplay->m_axisred);
pApp->AxisRed = pDisplay->m_axisred;
pApp->WriteProfileInt("Display","axislines", pDisplay->m_axislines);
pApp->AxisLine = (float)pDisplay->m_axislines/1000;
pApp->WriteProfileInt("Display","axistext", pDisplay->m_axistext);
pApp->AxisTextSize = (float)pDisplay->m_axistext/1000;
pApp->WriteProfileInt("Display","datablue", pDisplay->m_datablue);
//.........这里部分代码省略.........