vScriviamo
il gestore dell’evento pressione del tasto
apply
vvoid
CMBView::OnBnClickedButtonApply()
v{
v CString buf;
v CMBDoc *pd=GetDocument();
v m_ctrlRadius.GetWindowText(buf);
v pd->m.Radius=atof(buf);
v
v m_ctrlWidth.GetWindowText(buf);
v pd->m.Width=atof(buf);
v
v m_ctrlHeight.GetWindowText(buf);
v pd->m.Height=atof(buf);
v
v pd->m.Clear();
v pd->UpdateAllViews(0);
v}