本文整理汇总了C++中UpdateDialogControls函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateDialogControls函数的具体用法?C++ UpdateDialogControls怎么用?C++ UpdateDialogControls使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UpdateDialogControls函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateDialogControls
BOOL CCarburPageDlg::OnInitDialog()
{
Super::OnInitDialog();
m_shutoff_lo_threshold_edit.SetLimitText(4);
m_shutoff_lo_threshold_spin.SetBuddy(&m_shutoff_lo_threshold_edit);
m_shutoff_lo_threshold_spin.SetRangeAndDelta(250,7500,10);
m_shutoff_hi_threshold_edit.SetLimitText(4);
m_shutoff_hi_threshold_spin.SetBuddy(&m_shutoff_hi_threshold_edit);
m_shutoff_hi_threshold_spin.SetRangeAndDelta(250,7500,10);
m_epm_on_threshold_spin.SetBuddy(&m_epm_on_threshold_edit);
m_epm_on_threshold_edit.SetLimitText(4);
m_epm_on_threshold_edit.SetDecimalPlaces(2);
m_epm_on_threshold_spin.SetRangeAndDelta(0.0f,50.0f,0.1f);
m_shutoff_lo_threshold_edit_g.SetLimitText(4);
m_shutoff_lo_threshold_spin_g.SetBuddy(&m_shutoff_lo_threshold_edit_g);
m_shutoff_lo_threshold_spin_g.SetRangeAndDelta(250,7500,10);
m_shutoff_hi_threshold_edit_g.SetLimitText(4);
m_shutoff_hi_threshold_spin_g.SetBuddy(&m_shutoff_hi_threshold_edit_g);
m_shutoff_hi_threshold_spin_g.SetRangeAndDelta(250,7500,10);
m_shutoff_delay_spin.SetBuddy(&m_shutoff_delay_edit);
m_shutoff_delay_edit.SetLimitText(4);
m_shutoff_delay_edit.SetDecimalPlaces(2);
m_shutoff_delay_spin.SetRangeAndDelta(0.0f,2.5f,0.01f);
UpdateDialogControls(this, TRUE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
示例2: UpdateDialogControls
void CSgSelectionPreparationBar::ShowAudioSettings()
{
if (m_pSettingsListener)
m_pSettingsListener->ShowAudioSettings();
UpdateDialogControls(this, FALSE);
}
示例3: GetDlgItem
BOOL CFirmwareTabDlg::OnInitDialog()
{
Super::OnInitDialog();
//create parameters desk
CRect rect;
GetDlgItem(IDC_FIRMWARE_SUPPORT_PD_FRAME)->GetWindowRect(rect);
ScreenToClient(rect);
mp_ParamDeskDlg->Create(CParamDeskDlg::IDD,this);
mp_ParamDeskDlg->SetPosition(rect.TopLeft().x,rect.TopLeft().y);
mp_ParamDeskDlg->SetTitle(MLL::LoadString(IDS_FW_RESERVE_PARAMETERS));
mp_ParamDeskDlg->ShowSaveButton(false);
mp_ParamDeskDlg->ShowWindow(SW_SHOWNORMAL);
//create tables desk
GetDlgItem(IDC_FIRMWARE_SUPPORT_TD_FRAME)->GetWindowRect(rect);
ScreenToClient(rect);
mp_TablesPanel->Create(CTablesSetPanel::IDD, this);
mp_TablesPanel->SetPosition(rect.TopLeft().x,rect.TopLeft().y, GetDlgItem(IDC_FIRMWARE_SUPPORT_VIEW_FWOPT));
mp_TablesPanel->ShowWindow(SW_SHOWNORMAL);
mp_ContextMenuManager->Attach(this);
SetTimer(TIMER_ID,250,NULL);
//в коде прошивки выдeлено ограниченное количество байтов дл¤ строки иныормации
m_fw_information_edit.SetLimitText(48);
m_hot_keys_supplier->Init(this);
_RegisterHotKeys();
UpdateDialogControls(this,TRUE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
示例4: UpdateDialogControls
void CButtonsPanel::OnTimer(UINT nIDEvent)
{
//I know it is dirty hack, but... :-)
UpdateDialogControls(this,TRUE);
_EnableCharts(IsAllowed());
Super::OnTimer(nIDEvent);
}
示例5: _T
BOOL CCheckEngineTabDlg::OnInitDialog()
{
Super::OnInitDialog();
m_quick_help_text.SetWindowText(MLL::LoadString(IDS_CEPAGE_QUICK_HELP_TEXT));
m_errors_list.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES | LVS_EX_GRIDLINES);
//устанавливаем картинки состояния для чекбоксов...
m_errors_list.SetImageList(&m_image_list, LVSIL_STATE);
DPIAware dpia;
m_errors_list.InsertColumn(0, MLL::LoadString(IDS_CEPAGE_ERROR_STATE), LVCFMT_LEFT, dpia.ScaleX(70));
m_errors_list.InsertColumn(1, _T("BC"), LVCFMT_LEFT, 35);
m_errors_list.InsertColumn(2, MLL::LoadString(IDS_CEPAGE_ERROR_DESCRIPTION), LVCFMT_LEFT, 450);
SetTimer(TIMER_ID,250,NULL);
ResetErrorsList();
m_header_ctrl->Init(m_errors_list.GetHeaderCtrl());
m_header_ctrl->SetTextColor(m_gray_text_color);
UpdateDialogControls(this,TRUE);
return TRUE; // return TRUE unless you set the focus to a control
}
示例6: UpdateDialogControls
void CCarburPageDlg::EnableFuelInjection(bool i_enable)
{
if (m_fuel_injection == i_enable)
return; //already has needed state
m_fuel_injection = i_enable;
if (::IsWindow(this->m_hWnd))
UpdateDialogControls(this, TRUE);
}
示例7: UpdateDialogControls
void CCopyTagBlkDlg::OnMakeDefaultBlock()
{
int i = LBlksList.GetCurSel();
if (i>=0)
{
UpdateDialogControls(this, FALSE);
}
}
示例8: UpdateDialogControls
void SpellCheck::SettingsChanged(void)
{
m_ignoreWords.clear();
if (GetSafeHwnd() != 0)
{
UpdateDialogControls();
ShowWordFromSelection();
}
}
示例9: SetTimer
BOOL CButtonsPanel::OnInitDialog()
{
Super::OnInitDialog();
SetTimer(TIMER_ID, 250, NULL);
UpdateDialogControls(this,TRUE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
示例10: ASSERT
void CCopyTagBlkDlg::OnCheckChangeRBlkList()
{
int i = RBlksList.GetCurSel();
ASSERT(i>=0);
CString Txt;
RBlksList.GetText(i, Txt);
CCopyBlock::MoveBlockLocation(sModelClass(), (char*)(const char*)Txt, RBlksList.GetCheck(i));
BuildBlockList();
UpdateDialogControls(this, FALSE);
}
示例11: UpdateDialogControls
LRESULT CDDEStatsDlg::OnUpdateStats(WPARAM wParam, LPARAM lParam)
{
static int UpdateCnt = 0;
const char* UpdateRotate[4] = {"/","-","\\","|"};
wParam &= (~(SUB_UPDATE_SENDMSG|SUB_UPDATE_SUBSCHANGED));
const bool IsExec = (wParam==SUB_UPDATE_EOWRITE || wParam==SUB_UPDATE_EOEXEC);
if (!IsExec)
UpdateDialogControls(this, FALSE);
if (bDidInit && pMngr->DDEExec())
{
const int TagCnt = pMngr->DDEExec()->SubsData.GetSize();
char Buff[128];
if (!XBusy())
{
SetDlgItemText(IDC_DDESTATUS_TXT, ".");
sprintf(Buff, "Stopped! (%d tags)", TagCnt);
}
else
{
if (IsExec)
{
if (++UpdateCnt>3)
UpdateCnt=0;
}
SetDlgItemText(IDC_DDESTATUS_TXT, UpdateRotate[UpdateCnt]);
sprintf(Buff, "%d subscription tags", TagCnt);
}
SetDlgItemText(IDC_DDESUBSCNT_TXT, Buff);
if (m_ShowStats==0)
{//show stats...
m_StatsList.ResetContent();
for (int i=0; i<MaxDDEStats; i++)
{
sprintf(Buff, "%d\t%s", pMngr->DDEExec()->StatsCnt[i], DDEStatDescs[i]);
m_StatsList.InsertString(-1, Buff);
if (IsExec)
pMngr->DDEExec()->StatsCnt[i] = 0;
}
UpdateData(FALSE);
}
else if (m_ShowStats==1)
{//show tag list & values...
if (bSubsChanged)
{
m_StatsList.ResetContent();
//pMngr->DDEExec()->BuildTagList(&m_StatsList);
pMngr->DDEExec()->BuildSubsList(&m_StatsList);
UpdateData(FALSE);
bSubsChanged = 0;
}
}
}
return TRUE;
}
示例12: UpdateData
void CDlg_PricingConfiguration::OnDel()
{
if(m_chart.DeleteItem(m_iItem))
{
m_dValue = 0;
m_sLabel = "";
m_iItem = -1;
UpdateData(FALSE);
UpdateDialogControls(this,FALSE);
}
}
示例13: UpdateHotKeyButton
void CSgSelectionPreparationBar::OnShowSgSettings()
{
if (m_pSettingsListener == NULL)
return;
m_pSettingsListener->ShowSgSettings();
UpdateHotKeyButton();
UpdateDialogControls(this, FALSE);
}
示例14: UpdateDialogControls
void CFirmwareTabDlg::OnTimer(UINT nIDEvent)
{
//I know it is dirty hack, but... :-)
UpdateDialogControls(this,TRUE);
Super::OnTimer(nIDEvent);
//обновл¤ем состо¤ние (если нужно)
bool pd_enable = IsFirmwareOpened();
if (mp_ParamDeskDlg->IsEnabled()!=pd_enable)
mp_ParamDeskDlg->Enable(pd_enable);
}
示例15: UpdateDialogControls
void CADCCompenPageDlg::EnableSECU3TItems(bool i_enable)
{
if (m_enable_secu3t_features == i_enable)
return; //already has needed state
m_enable_secu3t_features = i_enable;
if (::IsWindow(m_hWnd))
{
UpdateDialogControls(this, TRUE);
RedrawWindow(); //strange, without this function call spin buttons don't update correctly...
}
}