本文整理汇总了C++中CModifiedComboBox::SetChanged方法的典型用法代码示例。如果您正苦于以下问题:C++ CModifiedComboBox::SetChanged方法的具体用法?C++ CModifiedComboBox::SetChanged怎么用?C++ CModifiedComboBox::SetChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CModifiedComboBox
的用法示例。
在下文中一共展示了CModifiedComboBox::SetChanged方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdatePageSettings
void COptionPluginPage::UpdatePageSettings(void)
{
UpdateCheckBoxes();
for (ComboBoxList::iterator cb_iter = m_ComboBoxList.begin(); cb_iter != m_ComboBoxList.end(); cb_iter++)
{
CModifiedComboBox * ComboBox = cb_iter->second;
stdstr SelectedValue;
ComboBox->SetChanged(g_Settings->LoadStringVal(cb_iter->first, SelectedValue));
for (int i = 0, n = ComboBox->GetCount(); i < n; i++)
{
const CPluginList::PLUGIN ** PluginPtr = (const CPluginList::PLUGIN **)ComboBox->GetItemDataPtr(i);
if (PluginPtr == NULL)
{
continue;
}
const CPluginList::PLUGIN * Plugin = *PluginPtr;
if (Plugin == NULL)
{
continue;
}
if (_stricmp(SelectedValue.c_str(), Plugin->FileName.c_str()) != 0)
{
continue;
}
ComboBox->SetDefault((WPARAM)Plugin);
}
}
PluginItemChanged(GFX_LIST, GFX_ABOUT, false);
PluginItemChanged(AUDIO_LIST, AUDIO_ABOUT, false);
PluginItemChanged(CONT_LIST, CONT_ABOUT, false);
PluginItemChanged(RSP_LIST, RSP_ABOUT, false);
}
示例2: PluginItemChanged
void COptionPluginPage::PluginItemChanged(int id, int AboutID, bool bSetChanged)
{
CModifiedComboBox * ComboBox = NULL;
for (ComboBoxList::iterator cb_iter = m_ComboBoxList.begin(); cb_iter != m_ComboBoxList.end(); cb_iter++)
{
if ((int)(cb_iter->second->GetMenu()) != id)
{
continue;
}
ComboBox = cb_iter->second;
break;
}
if (ComboBox == NULL)
{
return;
}
int index = ComboBox->GetCurSel();
if (index == CB_ERR)
{
return;
}
const CPluginList::PLUGIN ** PluginPtr = (const CPluginList::PLUGIN **)ComboBox->GetItemDataPtr(index);
if (PluginPtr)
{
const CPluginList::PLUGIN * Plugin = *PluginPtr;
if (Plugin)
{
::EnableWindow(GetDlgItem(AboutID), Plugin->AboutFunction);
}
}
if (bSetChanged)
{
ComboBox->SetChanged(true);
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
}
}