Beispiel #1
0
void CMixereView::OnFileProperties() 
{
	CPropertiesDlg		dlg;
	dlg.m_ChannelCount = GetItemCount();
	if (dlg.DoModal() == IDOK) {
		SetItemCountUndoable(dlg.m_ChannelCount);
	}
}
Beispiel #2
0
// voaoom
void CLab08View::OnProperties() {
	
	Properties copy = GetDocument()->properties;
	CPropertiesDlg * dlg = new CPropertiesDlg(&copy);
	INT_PTR result = dlg->DoModal();
	if (result == IDOK) {
		GetDocument()->properties = copy;
		Invalidate();
	} 
	delete dlg;
}