// Ends-in Contrast Stretching의 최저값 설정 void CBMPFrame::OnIpEcsLowEnd() { // TODO: 여기에 명령 처리기 코드를 추가합니다. CMFCRibbonEdit *pSpin = DYNAMIC_DOWNCAST(CMFCRibbonEdit, ((CMainFrame*)GetTopLevelFrame())->GetRibbonBar()->FindByID(ID_IP_ECSLOW)); m_bEcsLowEnd = (BYTE)_wtof(pSpin->GetEditText()); }
void CMainFrame::OnFormatSizeX() { CMFCRibbonComboBox* pFormatSelCombo = DYNAMIC_DOWNCAST(CMFCRibbonComboBox, m_wndRibbonBar.FindByID(WM_CHART_FORMAT_SEL_COMBO)); if (pFormatSelCombo == NULL) return; int iFormatElement=pFormatSelCombo->GetCurSel(); CMFCRibbonEdit* pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, m_wndRibbonBar.FindByID(WM_CHART_FORMAT_SIZEY)); chartControl.setFormat(iFormatElement,CChartControl::Format_SizeLength,pEdit->GetEditText()); }
void CMSOffice2007DemoView::OnPagelayoutIndentRight() { CMFCRibbonBar* pRibbon = ((CMainFrame*) GetTopLevelFrame())->GetRibbonBar(); ASSERT_VALID(pRibbon); CMFCRibbonEdit* pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, pRibbon->FindByID(ID_PAGELAYOUT_INDENT_RIGHT)); WPD_PARAFORMAT pf; pf.cbSize = sizeof(PARAFORMAT); pf.dwMask = PFM_RIGHTINDENT; pf.dxRightIndent = _ttol(pEdit->GetEditText()) * 10; SetParaFormat(pf); }
void CMainFrame::setText() { CMFCRibbonComboBox* pFormatSelCombo = DYNAMIC_DOWNCAST(CMFCRibbonComboBox, m_wndRibbonBar.FindByID(WM_CHART_FORMAT_SEL_COMBO)); if (pFormatSelCombo == NULL) return; int iFormatElement=pFormatSelCombo->GetCurSel(); // //AfxMessageBox(pFormatSelCombo->GetItem(iFormatElement)); CMFCRibbonEdit* pTextEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, m_wndRibbonBar.FindByID(WM_CHART_FORMAT_TEXT)); // //AfxMessageBox(pTextEdit->GetEditText()); chartControl.setFormat(iFormatElement,CChartControl::Format_Text,pTextEdit->GetEditText()); }
void CMainFrame::setRotateY() { CMFCRibbonEdit* pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, m_wndRibbonBar.FindByID(WM_CHART_DESIGN_ROTATEY)); chartControl.setGlobalIntProperty(CChartControl::PropRotateY,_ttoi(pEdit->GetEditText())); }
void CMainFrame::setPerspective() { CMFCRibbonEdit* pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, m_wndRibbonBar.FindByID(WM_CHART_DESIGN_PERSPECTIVE)); chartControl.setGlobalIntProperty(CChartControl::PropPerspective,_ttoi(pEdit->GetEditText())); }
void CMainFrame::setGapDepth() { CMFCRibbonEdit* pEdit = DYNAMIC_DOWNCAST(CMFCRibbonEdit, m_wndRibbonBar.FindByID(WM_CHART_DESIGN_GAP_DEPTH)); chartControl.setGlobalIntProperty(CChartControl::PropGapDepth,_ttoi(pEdit->GetEditText())); }