|
楼主 |
发表于 2008-10-22 23:23:35
|
显示全部楼层
回复: PR256109 Feature location, if only form or default are selected, inposs
ID_DIM_LOC_MAKEDEFAULT
DDX_Check(pDX, ID_DIM_LOC_MAKEDEFAULT, m_makedefault);
ID_DIM_LOC_FORM_TOL
DDX_Check(pDX, ID_DIM_LOC_FORM_TOL, m_form);
ON_BN_CLICKED(ID_DIM_LOC_FORM_TOL, SelectForm)
IDC_ALL_DIALOGS_FEATURE_CREATE
t:\V44B\MENU\DIMLOCDL.CPP
voidCDimLocDlg::CheckSelectedAxesToEnableCreate()
{ //102611 <05jun06 paola>: disable CREATE button if no AXES selected
CWnd * CreateWnd = (CWnd *) GetDlgItem(IDC_ALL_DIALOGS_FEATURE_CREATE);
BOOLToBeEnabled= TRUE;
if (m_pa || m_a || m_d || m_pr || m_r || m_x || m_y ||
m_z || m_auto || m_t || m_v || m_l ||
m_pd || m_rt || m_rs || m_s || m_h || m_form ||
m_g_only || m_r_only
|| m_makedefault || m_form) // PR256109
ToBeEnabled= TRUE;
else
ToBeEnabled= FALSE;
if(CreateWnd)
CreateWnd->EnableWindow(ToBeEnabled);
}
|
|