本文整理汇总了C++中GetCheckedRadioButton函数的典型用法代码示例。如果您正苦于以下问题:C++ GetCheckedRadioButton函数的具体用法?C++ GetCheckedRadioButton怎么用?C++ GetCheckedRadioButton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetCheckedRadioButton函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnBnClickedOk
void CPullFetchDlg::OnBnClickedOk()
{
this->UpdateData();
if( GetCheckedRadioButton(IDC_REMOTE_RD,IDC_OTHER_RD) == IDC_REMOTE_RD)
{
m_RemoteURL=m_Remote.GetString();
m_bAllRemotes = (m_Remote.GetCurSel() == 0 && m_Remote.GetCount() > 1 && !m_IsPull);
if( !m_IsPull ||
(m_configPullRemote == m_RemoteURL && m_configPullBranch == m_RemoteBranch.GetString() ))
//When fetching or when pulling from the configured tracking branch, dont explicitly set the remote branch name,
//because otherwise git will not update the remote tracking branches.
m_RemoteBranchName.Empty();
else
m_RemoteBranchName=m_RemoteBranch.GetString();
}
if( GetCheckedRadioButton(IDC_REMOTE_RD,IDC_OTHER_RD) == IDC_OTHER_RD)
{
m_Other.GetWindowTextW(m_RemoteURL);
m_RemoteBranchName=m_RemoteBranch.GetString();
// only store URL in history if it's value was used
m_Other.SaveHistory();
}
m_RemoteReg = m_Remote.GetString();
m_RemoteBranch.SaveHistory();
this->m_regRebase=this->m_bRebase;
m_regFFonly = m_bFFonly;
m_regAutoLoadPutty = m_bAutoLoad;
this->OnOK();
}
开发者ID:dbcb,项目名称:TortoiseGit,代码行数:34,代码来源:PullFetchDlg.cpp
示例2: GetCheckedRadioButton
void CSQLiteTestDlg::GoSort()
{
bool asc = GetCheckedRadioButton(IDC_ASC, IDC_DESC) == IDC_ASC;
int idsort = GetCheckedRadioButton(IDC_SNONE, IDC_YEAR);
CString sort;
switch (idsort) {
case IDC_MAKE:
sort = "Make";
break;
case IDC_MODEL:
sort = "Model";
break;
case IDC_YEAR:
sort = "Year";
break;
case IDC_OWNER:
sort = "Owner";
break;
case IDC_SNONE:
default:
sort = "";
}
CString cs;
if (!sort.IsEmpty()) {
cs.Format("[%s] %s", sort, (asc) ? "ASC" : "DESC");
//the SQL sort line looks like: "[Foo] ASC, [Boo] DESC"
}
m_cars.SetSort(cs);
m_cars.Query();
LoadList();
}
开发者ID:KnowNo,项目名称:test-code-backup,代码行数:34,代码来源:SQLite+TestDlg.cpp
示例3: OnBnClickedOk
void CPushDlg::OnBnClickedOk()
{
CHorizontalResizableStandAloneDialog::UpdateData(TRUE);
if( GetCheckedRadioButton(IDC_RD_REMOTE,IDC_RD_URL) == IDC_RD_REMOTE)
{
m_URL=m_Remote.GetString();
}
if( GetCheckedRadioButton(IDC_RD_REMOTE,IDC_RD_URL) == IDC_RD_URL)
{
m_URL=m_RemoteURL.GetString();
}
if (!m_bPushAllBranches)
{
this->m_BranchRemoteName=m_BranchRemote.GetString().Trim();
this->m_BranchSourceName=m_BranchSource.GetString();
if(!m_BranchRemoteName.IsEmpty() && !g_Git.IsBranchNameValid(this->m_BranchRemoteName))
{
CMessageBox::Show(NULL, IDS_B_T_NOTEMPTY, IDS_TORTOISEGIT, MB_OK);
return;
}
this->m_RemoteURL.SaveHistory();
this->m_BranchRemote.SaveHistory();
m_RemoteReg = m_Remote.GetString();
}
this->m_regAutoLoad = m_bAutoLoad ;
CHorizontalResizableStandAloneDialog::OnOK();
}
开发者ID:omnibs,项目名称:TortoiseGit,代码行数:33,代码来源:PushDlg.cpp
示例4: OnBnClickedRd
void CPullFetchDlg::OnBnClickedRd()
{
if( GetCheckedRadioButton(IDC_REMOTE_RD,IDC_OTHER_RD) == IDC_REMOTE_RD)
{
m_Remote.EnableWindow(TRUE);
m_Other.EnableWindow(FALSE);
if(!m_IsPull)
m_RemoteBranch.EnableWindow(FALSE);
}
if( GetCheckedRadioButton(IDC_REMOTE_RD,IDC_OTHER_RD) == IDC_OTHER_RD)
{
CString clippath = CAppUtils::GetClipboardLink(m_IsPull ? _T("git pull") : _T("git fetch"), 1);
if (clippath.IsEmpty())
m_Other.SetCurSel(0);
else
{
int argSeparator = clippath.Find(' ');
if (argSeparator > 1 && clippath.GetLength() > argSeparator + 2)
{
m_Other.SetWindowText(clippath.Left(argSeparator));
m_RemoteBranch.SetWindowText(clippath.Mid(argSeparator + 1));
}
else
m_Other.SetWindowText(clippath);
}
m_Remote.EnableWindow(FALSE);
m_Other.EnableWindow(TRUE);;
if(!m_IsPull)
m_RemoteBranch.EnableWindow(TRUE);
}
}
开发者ID:dbcb,项目名称:TortoiseGit,代码行数:31,代码来源:PullFetchDlg.cpp
示例5: IsDlgButtonChecked
BOOL COptionsGrid::OnApply()
{
ShowGrid = IsDlgButtonChecked(GRIDBOX_SHOW);
SnapGrid = IsDlgButtonChecked(GRIDBOX_SNAP);
int hold = GetCheckedRadioButton(GRIDBOX_MM,GRIDBOX_INCHES);
if (hold == GRIDBOX_MM)
Units = 0;
else
Units = 1;
hold = GetCheckedRadioButton(GRIDBOX_NORMAL,GRIDBOX_USER);
switch (hold)
{
case GRIDBOX_NORMAL:
Grid = NormalGrid;
break;
case GRIDBOX_FINE:
Grid = FineGrid;
break;
case GRIDBOX_USER:
{
CString s;
GetDlgItemText(GRIDBOX_SPACING,s);
Grid = _tstof( s );
if (Units == 0)
Grid = (Grid * static_cast<double>(PIXELSPERMM));
else
Grid = (Grid * 254.0 * PIXELSPERMM) / 1000.0;
break;
}
}
if (Grid <=0 )
{
Grid = FineGrid;
}
// Write these settings back
TransformSnap* pSnap = &(GetDocument()->m_snap);
pSnap->SetAccurateGrid(Grid);
pSnap->SetGridSnap( SnapGrid );
GetDocument()->GetOptions()->SetGridShow( ShowGrid == TRUE );
GetDocument()->GetOptions()->SetUnits( Units == TRUE );
// Write the settings to the registry
CRegistry::Set("ShowGrid",ShowGrid);
CRegistry::Set("Units",Units);
CRegistry::Set("Grid",Grid);
return CPropertyPage::OnApply();
}
开发者ID:saranyan,项目名称:tinycad_graph_matching,代码行数:55,代码来源:OptionsSheets.cpp
示例6: pLock
void CAvatarDlg::OnOK()
{
if ( ! UpdateData() )
return;
{
CSingleLock pLock( &theApp.m_pSection, TRUE );
if ( ! theApp.IsValid( m_pAvatar ) )
{
EndDialog( IDCANCEL );
return;
}
{
int nOnline = GetCheckedRadioButton( IDC_ONLINE_NO_SOUND, IDC_ONLINE_CUSTOM );
CString sOnlineSound;
switch ( nOnline )
{
case IDC_ONLINE_NO_SOUND:
sOnlineSound = NO_SOUND;
break;
case IDC_ONLINE_DEFAULT:
break;
case IDC_ONLINE_CUSTOM:
m_wndOnlineSound.GetWindowText( sOnlineSound );
break;
}
m_pAvatar->m_sOnlineSound = sOnlineSound;
}
{
int nOffline = GetCheckedRadioButton( IDC_OFFLINE_NO_SOUND, IDC_OFFLINE_CUSTOM );
CString sOfflineSound;
switch ( nOffline )
{
case IDC_OFFLINE_NO_SOUND:
sOfflineSound = NO_SOUND;
break;
case IDC_OFFLINE_DEFAULT:
break;
case IDC_OFFLINE_CUSTOM:
m_wndOfflineSound.GetWindowText( sOfflineSound );
break;
}
m_pAvatar->m_sOfflineSound = sOfflineSound;
}
m_pAvatar->m_bLoopSound = m_bLoop;
theApp.Refresh( TRUE, m_pAvatar );
}
__super::OnOK();
}
开发者ID:raspopov,项目名称:SLAP,代码行数:55,代码来源:AvatarDlg.cpp
示例7: pConfig
//----- OnBnClickedBtConvert() ----------------------------------------------
void CFormChunkMergeView::OnBnClickedBtConvert()
{
Configuration* pConfig (Configuration::getInstance());
CComboBox* pCBox ((CComboBox*) GetDlgItem(IDC_CB_MAT_SINGLE));
NifCollisionUtility ncUtility(*(NifUtlMaterialList::getInstance()));
map<int, unsigned int> materialMap;
unsigned short ncReturn (NCU_OK);
// store data
UpdateData(TRUE);
// build full texture path and set to utility
ncUtility.setSkyrimPath(pConfig->getPathTextures());
// set callback for log info
ncUtility.setLogCallback(logCallback);
// get material handling
MaterialTypeHandling matHandling((MaterialTypeHandling) (GetCheckedRadioButton(IDC_RD_MAT_SINGLE, IDC_RD_MAT_DEFINE) - IDC_RD_MAT_SINGLE));
// set default material
materialMap[-1] = ((unsigned int) pCBox->GetItemDataPtr(pCBox->GetCurSel()));
// add additional materials in case of special handling
if (matHandling == NCU_MT_MATMAP)
{
// do something special
}
// set flags
ncUtility.setCollisionNodeHandling((CollisionNodeHandling) (GetCheckedRadioButton(IDC_RD_COLL_CDATA, IDC_RD_COLL_MESH) - IDC_RD_COLL_CDATA));
ncUtility.setMaterialTypeHandling (matHandling, materialMap);
ncUtility.setDefaultMaterial (materialMap[-1]);
ncUtility.setMergeCollision (((CButton*) GetDlgItem(IDC_RD_COLL_GLOBAL)) ->GetCheck() == TRUE);
ncUtility.setReorderTriangles (((CButton*) GetDlgItem(IDC_CK_REORDER_TRIS))->GetCheck() == TRUE);
// add collision data to nif
ncReturn = ncUtility.addCollision(CStringA(_fileNameColl).GetString(), CStringA(_fileNameIn).GetString(), pConfig->getPathTemplates() + "\\" + CStringA(_template).GetString());
// decode result
if (ncReturn == NCU_OK)
{
LogMessageObject::LogMessage(NCU_MSG_TYPE_SUCCESS, "Collision data added successfully");
}
else
{
LogMessageObject::LogMessage(NCU_MSG_TYPE_ERROR, "NifCollision returned code: %d", ncReturn);
}
LogMessageObject::LogMessage(NCU_MSG_TYPE_INFO, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
}
开发者ID:skyfox69,项目名称:NifUtilsSuite,代码行数:51,代码来源:FormChunkMergeView.cpp
示例8: GetDlgItem
void CPushDlg::OnBnClickedRd()
{
if( GetCheckedRadioButton(IDC_RD_REMOTE,IDC_RD_URL) == IDC_RD_REMOTE)
{
m_Remote.EnableWindow(TRUE);
GetDlgItem(IDC_REMOTE_MANAGE)->EnableWindow(TRUE);
m_RemoteURL.EnableWindow(FALSE);
}
if( GetCheckedRadioButton(IDC_RD_REMOTE,IDC_RD_URL) == IDC_RD_URL)
{
m_Remote.EnableWindow(FALSE);
GetDlgItem(IDC_REMOTE_MANAGE)->EnableWindow(FALSE);
m_RemoteURL.EnableWindow(TRUE);
}
}
开发者ID:omnibs,项目名称:TortoiseGit,代码行数:15,代码来源:PushDlg.cpp
示例9: UpdateData
// Get user edited data from dialog and stuff in m_pVTTestObject->m_regInfo
void CRegisterDlg::OnOK()
{
// Copy data from selected edit controls into m_ data members
UpdateData(TRUE);
// pszSite
m_editSite.GetWindowText(m_pVTTestObject->m_regInfo.siteStr); // save the string
m_pVTTestObject->m_regInfo.bUseSiteStr = (GetCheckedRadioButton(IDC_RADIO_SITESTRNULL, IDC_RADIO_SITESTREDIT)
== IDC_RADIO_SITESTREDIT);
// pNotifyInterface
m_pVTTestObject->m_regInfo.bRegNotifySink = (m_checkNotify.GetCheck() == 1);
// dwFlags
m_pVTTestObject->m_regInfo.bAllMsgsFlg = (GetCheckedRadioButton(IDC_RADIO_ALLMSGSFLG, IDC_RADIO_ZEROFLG)
== IDC_RADIO_ALLMSGSFLG);
// pSiteInfo
m_pVTTestObject->m_regInfo.bUseSiteInfo = (GetCheckedRadioButton(IDC_RADIO_SITENULL, IDC_RADIO_SITEINFO)
== IDC_RADIO_SITEINFO);
if(m_pVTTestObject->m_regInfo.bUseSiteInfo)
{
GUID gZero;
memset(&gZero, 0, sizeof(gZero));
if(IsEqualGUID(m_pVTTestObject->m_regInfo.siteInfo.gModeID, gZero))
{
MessageBox(TEXT("You must select a mode if you wish to pass the VTSITEINFO structure to IVoiceText::Register()"),
TEXT("Incomplete VTSITEINFO Structure"), MB_ICONSTOP);
return;
}
}
//m_regInfo.siteInfo.dwDevice
m_pVTTestObject->m_regInfo.bUseMapper = (GetCheckedRadioButton(IDC_RADIO_MAPPER, IDC_RADIO_DEVICEID)
== IDC_RADIO_MAPPER);
m_pVTTestObject->m_regInfo.siteInfo.dwDevice = m_editDWDevice;
//m_regInfo.siteInfo.dwEnable
m_pVTTestObject->m_regInfo.siteInfo.dwEnable = (m_checkEnable.GetCheck() == 1);
//m_regInfo.siteInfo.dwSpeed
m_pVTTestObject->m_regInfo.siteInfo.dwSpeed = m_editDWSpeed;
//m_regInfo.siteInfo.gModeID
m_pVTTestObject->m_regInfo.siteInfo.gModeID = m_pVTTestObject->m_regInfo.ttsSelect.gModeID;
CDialog::OnOK();
}
开发者ID:rokaku,项目名称:tts4st,代码行数:49,代码来源:vtpick.cpp
示例10: UpdateBillboardUI
void KSceneSFXEditorBillboardPage::OnCbnSelchangeComboBillboardList()
{
HRESULT hRetCode = E_FAIL;
VOID *pvEntityPointer = NULL;
// TODO: Add your control notification handler code here
UpdateBillboardUI();
GET_SFX_EDITOR();
GET_BILLBOARD();
IEKG3DSceneSelectionTool* pSelTool = NULL;
HRESULT hr = pScene->GetSelectionToolInterface(&pSelTool);
_ASSERTE(SUCCEEDED(hr));
IEKG3DSceneEditorBase *piSceneEditorBase = NULL;
pScene->GetSceneEditBase(&piSceneEditorBase);
IEKG3DSceneSelectBase* pSelector = NULL;
piSceneEditorBase->GetSceneSelector(&pSelector);
_ASSERTE(pSelector);
//pSelector->SelectNone(0);
pSelTool->ClearSelection();
pSelector->CopySelectable2SelectedSet(pBillboard);
pFrame->GetKeysFrame()->UpdateTransformUI();
int id = GetCheckedRadioButton(IDC_RADIO_BILLBOARD_COLOR, IDC_RADIO_UV_OFFSET);
CheckDlgButton(id, BST_UNCHECKED);
//pFrame->m_dlgKeyFrame.SetTimeLine("", NULL, SFX_TLDT_NONE);
pFrame->GetKeysFrame()->SetTimeLine("", NULL, SFX_TLDT_NONE);
//Exit0:
return;
}
开发者ID:viticm,项目名称:pap2,代码行数:35,代码来源:KSceneSFXEditorBillboardPage.cpp
示例11: switch
void CPPageYoutube::UpdateMemoryCtrl()
{
switch (GetCheckedRadioButton(IDC_RADIO1, IDC_RADIO2)) {
case IDC_RADIO1: {
GetDlgItem(IDC_STATIC3)->ShowWindow(TRUE);
GetDlgItem(IDC_RADIO3)->ShowWindow(TRUE);
GetDlgItem(IDC_RADIO4)->ShowWindow(TRUE);
GetDlgItem(IDC_EDIT1)->ShowWindow(TRUE);
GetDlgItem(IDC_EDIT2)->ShowWindow(TRUE);
GetDlgItem(IDC_SPIN1)->ShowWindow(TRUE);
GetDlgItem(IDC_SPIN2)->ShowWindow(TRUE);
}
break;
case IDC_RADIO2: {
GetDlgItem(IDC_STATIC3)->ShowWindow(FALSE);
GetDlgItem(IDC_RADIO3)->ShowWindow(FALSE);
GetDlgItem(IDC_RADIO4)->ShowWindow(FALSE);
GetDlgItem(IDC_EDIT1)->ShowWindow(FALSE);
GetDlgItem(IDC_EDIT2)->ShowWindow(FALSE);
GetDlgItem(IDC_SPIN1)->ShowWindow(FALSE);
GetDlgItem(IDC_SPIN2)->ShowWindow(FALSE);
}
break;
}
}
开发者ID:Tphive,项目名称:mpc-be,代码行数:25,代码来源:PPageYouTube.cpp
示例12: GetCheckedRadioButton
void CConnectionOptionsDlg::OnOK() {
int button = GetCheckedRadioButton( IDC_DSNRADIO, IDC_SQLRADIO );
CString address, server, database;
switch ( button ) {
case IDC_DSNRADIO :
preferences.SetString("ConnectionType","DSN");
GetDlgItemText( IDC_DSN, database );
preferences.SetString("DSNDatabase", (LPCTSTR)database );
preferences.SetString("DSN",(LPCTSTR)database);
break;
case IDC_ACCESSRADIO :
preferences.SetString("ConnectionType","Access");
GetDlgItemText( IDC_ACCESS, database );
preferences.SetString("AccessDatabase", (LPCTSTR)database);
database = (CString)"Driver={Microsoft Access Driver (*.mdb)};Dbq=" + database + ";";
preferences.SetString("DSN",(LPCTSTR)database);
break;
case IDC_SQLRADIO :
preferences.SetString("ConnectionType","SQL");
GetDlgItemText( IDC_SQLSERVER, server );
GetDlgItemText( IDC_SQLADDRESS, address );
GetDlgItemText( IDC_SQLDATABASE, database );
preferences.SetString("SQLServer", (LPCTSTR)server);
preferences.SetString("SQLAddress", (LPCTSTR)address);
preferences.SetString("SQLDatabase", (LPCTSTR)database);
database = "Driver={SQL Server};Server=" + server + ";Address=" + address + ";Network=DBMSSOCN;Database=" + database + ";";
preferences.SetString("DSN",(LPCTSTR)database);
break;
}
preferences.SetBool( "UsePrefix", ( ((CButton*)GetDlgItem( IDC_PREFIX ))->CButton::GetCheck() ? true : false ) );
CDialog::OnOK();
}
开发者ID:bklimt,项目名称:StudentInfo,代码行数:32,代码来源:ConnectionOptionsDlg.cpp
示例13: GetCheckedRadioButton
void DlgSMTP::OnRadlahde()
{
CString cs;
COleDateTime odt;
m_attach_from = GetCheckedRadioButton(IDC_RADLAHDE1, IDC_RADLAHDE2);
if(m_attach_from == IDC_RADLAHDE1)
{
m_chkAsiakkaat.EnableWindow(TRUE);
m_chkLaskuttajat.EnableWindow(TRUE);
m_chkTyotyypit.EnableWindow(TRUE);
m_chkTuotteet.EnableWindow(TRUE);
m_btnPolku.EnableWindow(FALSE);
m_stcAttachment.SetWindowText("");
}
else if(m_attach_from == IDC_RADLAHDE2)
{
m_chkAsiakkaat.EnableWindow(FALSE);
m_chkLaskuttajat.EnableWindow(FALSE);
m_chkTyotyypit.EnableWindow(FALSE);
m_chkTuotteet.EnableWindow(FALSE);
m_btnPolku.EnableWindow(TRUE);
m_stcAttachment.SetWindowText("");
}
}
开发者ID:ptesavol,项目名称:t-time,代码行数:25,代码来源:DlgSMTP.cpp
示例14: GetCheckedRadioButton
short CAnalysisHowPage::GetComputationKind()
{
short kind = GetCheckedRadioButton(IDC_STATISTIC, IDC_EVENT) - IDC_STATISTIC;
ASSERT(kind >= 0 && kind < CAnalysisComputation::NB_KIND);
return kind;
}
开发者ID:RNCan,项目名称:WeatherBasedSimulationFramework,代码行数:7,代码来源:AnalysisPages.cpp
示例15: GetCheckedRadioButton
void CInteractionAreaDialog::OnUpdateCustomTimeSettings(CCmdUI* pCmdUI) {
int radioId = GetCheckedRadioButton(IDC_AC_ALL_PAGES, IDC_AC_CHOOSE);
if (radioId == IDC_AC_CHOOSE)
pCmdUI->Enable(TRUE);
else
pCmdUI->Enable(FALSE);
}
开发者ID:identity0815,项目名称:os45,代码行数:7,代码来源:InteractionAreaDialog.cpp
示例16: ExtractActionParameters
void CInteractionAreaDialog::OnBtnClickOK()//OnOK()
{
// read the user settings and save it
for (int i = 0; i < ACTION_COUNT; ++i)
ExtractActionParameters(i);
int iRadioButtonId = GetCheckedRadioButton(IDC_AC_ALL_PAGES, IDC_AC_CHOOSE);
m_periodId = INTERACTION_PERIOD_END_PAGE;
CPage *pCurrentPage = NULL;
switch (iRadioButtonId)
{
case IDC_AC_CURRENT_PAGE:
m_periodId = INTERACTION_PERIOD_PAGE;
break;
case IDC_AC_END_OF_PAGE:
m_periodId = INTERACTION_PERIOD_END_PAGE;
break;
case IDC_AC_CURRENT_TIMESTAMP:
m_periodId = INTERACTION_PERIOD_TIME;
break;
case IDC_AC_ALL_PAGES:
m_periodId = INTERACTION_PERIOD_ALL_PAGES;
break;
case IDC_AC_CHOOSE:
m_periodId = INTERACTION_PERIOD_TIME;
m_iCustomStartTime = m_sldTime.GetPos();
m_iCustomPeriod = m_sldPeriod.GetPos();
break;
}
CDialog::OnOK();
}
开发者ID:identity0815,项目名称:os45,代码行数:33,代码来源:InteractionAreaDialog.cpp
示例17: GetCheckedRadioButton
void CPageProxyMan::Enable(BOOL benable)
{
m_cProxy.EnableWindow(benable);
m_cPort.EnableWindow(benable);
int check = GetCheckedRadioButton(IDC_RADIO_HTTP,IDC_RADIO_SOCKET5);
switch(check)
{
case IDC_RADIO_HTTP:
m_cUser.EnableWindow(benable);
m_cPWD.EnableWindow(benable);
break;
case IDC_RADIO_SOCKET4:
m_cUser.EnableWindow(FALSE);
m_cPWD.EnableWindow(FALSE);
break;
case IDC_RADIO_SOCKET5:
m_cUser.EnableWindow(benable);
m_cPWD.EnableWindow(benable);
break;
default:
m_cUser.EnableWindow(FALSE);
m_cPWD.EnableWindow(FALSE);
}
CString strIP;
GetDlgItem(IDC_EDIT_IP)->GetWindowText(strIP);
if(strIP == "0.0.0.0")
((CIPAddressCtrl*)GetDlgItem(IDC_EDIT_IP))->SetAddress(0,0,0,0);
GetDlgItem(IDC_RADIO_HTTP)->EnableWindow(benable);
GetDlgItem(IDC_RADIO_SOCKET4)->EnableWindow(benable);
GetDlgItem(IDC_RADIO_SOCKET5)->EnableWindow(benable);
GetDlgItem(IDC_BUTTON_TEST)->EnableWindow(benable);
}
开发者ID:hefen1,项目名称:XCaimi,代码行数:34,代码来源:PageProxyMan.cpp
示例18: GetCheckedRadioButton
//
// Handle event when the user has incremented/decremented a Megabytes/Kilobytes/Bytes
// control by using one of the spinner controls.
//
void CAccessDialog::OnDeltaposMKB(MKBControls * which, NMHDR * pNMHDR)
{
NM_UPDOWN *pNMUpDown = (NM_UPDOWN *) pNMHDR;
DWORD edited_size;
// Do not process spinner change if the RSelectedID radio button is specified and is not selected.
if (which->RSelectedID && which->RNotSelectedID &&
(UINT) GetCheckedRadioButton(which->RNotSelectedID, which->RSelectedID)
!= which->RSelectedID) {
return;
}
// See if the user edited the value directly, then pressed the spin
// control. If so, force an update of the edited value before processing
// the up/down spin.
edited_size = GetMKBEditbox(which);
if (GetMKBSpinners(which) != edited_size) {
SetMKBSpinners(which, edited_size);
}
// Adjust the spinner positions based on their movement.
if (pNMHDR->idFrom == which->SBytesID) {
which->SBytesCtrl->SetPos(which->SBytesCtrl->GetPos() + pNMUpDown->iDelta);
} else if (pNMHDR->idFrom == which->SKilobytesID) {
which->SKilobytesCtrl->SetPos(which->SKilobytesCtrl->GetPos() + pNMUpDown->iDelta);
} else if (pNMHDR->idFrom == which->SMegabytesID) {
which->SMegabytesCtrl->SetPos(which->SMegabytesCtrl->GetPos() + pNMUpDown->iDelta);
} else {
ErrorMessage("Unexpected value for idFrom in CAccessDialog::OnDeltaposMKB");
}
// Save the new size.
(this->*(which->SetFunc)) (GetMKBSpinners(which));
}
开发者ID:BackupTheBerlios,项目名称:iometer-svn,代码行数:36,代码来源:AccessDialog.cpp
示例19: getObject
void CEditDlgPowerEdit::OnChange()
{
TCHAR str[SIZESTRING];
if (stop)
return;
getObject()->Display();
GetDlgItemText(POWERBOX_TEXT, str, sizeof(str) );
static_cast<CDrawPower*>(getObject())->str = str;
static_cast<CDrawPower*>(getObject())->dir=GetCheckedRadioButton(POWERBOX_TOP,POWERBOX_RIGHT)-POWERBOX_TOP;
static_cast<CDrawPower*>(getObject())->which=GetCheckedRadioButton(POWERBOX_BAR,POWERBOX_EARTH)-POWERBOX_BAR;
getObject()->Display();
}
开发者ID:saranyan,项目名称:tinycad_graph_matching,代码行数:16,代码来源:editbar.cpp
示例20: switch
void PortConfig::OnOK()
{
// TODO: Add extra validation here
switch( GetCheckedRadioButton(IDC_COM1, IDC_COM4) )
{
case IDC_COM1:
m_ComPort = 1;
break;
case IDC_COM2:
m_ComPort = 2;
break;
case IDC_COM3:
m_ComPort = 3;
break;
case IDC_COM4:
m_ComPort = 4;
break;
case IDC_COM5:
m_ComPort = 5;
break;
case IDC_COM6:
m_ComPort = 6;
break;
}
//((CComboBox*)GetDlgItem(IDC_BAUD))->GetWindowText(m_Baud);
//((CComboBox*)GetDlgItem(IDC_PARITY))->GetWindowText(m_Parity);
//((CComboBox*)GetDlgItem(IDC_DATA))->GetWindowText(m_Data);
//((CComboBox*)GetDlgItem(IDC_STOP_BITS))->GetWindowText(m_StopBit);
CDialog::OnOK();
}
开发者ID:JoeAltmaier,项目名称:Odyssey,代码行数:35,代码来源:PortConfig.cpp
注:本文中的GetCheckedRadioButton函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论