void CSurfaceDlg::OnCheckSubdivide() { UpdateData( TRUE ); // turn any patches in explicit subdivides Patch_SubdivideSelected( ( m_subdivide != FALSE ), m_nHorz, m_nVert ); g_pParentWnd->GetCamera()->MarkWorldDirty (); Sys_UpdateWindows( W_CAMERA | W_XY ); }
void CSurfaceDlg::OnChangeEditVert() { // TODO: If this is a RICHEDIT control, the control will not // send this notification unless you override the CDialog::OnInitDialog() // function and call CRichEditCtrl().SetEventMask() // with the ENM_CHANGE flag ORed into the mask. // TODO: Add your control notification handler code here UpdateData( TRUE ); // turn any patches in explicit subdivides Patch_SubdivideSelected( ( m_subdivide != FALSE ), m_nHorz, m_nVert ); Sys_UpdateWindows( W_CAMERA | W_XY ); }
void CSurfaceDlg::OnHScroll( UINT nSBCode, UINT nPos, CScrollBar *pScrollBar ) { UpdateData( TRUE ); if( pScrollBar->IsKindOf( RUNTIME_CLASS( CSliderCtrl ) ) ) { CSliderCtrl *ctrl = reinterpret_cast<CSliderCtrl *>( pScrollBar ); assert( ctrl ); if( ctrl == &m_wndVerticalSubdivisions ) { m_nVert = ctrl->GetPos(); } else { m_nHorz = ctrl->GetPos(); } UpdateData( FALSE ); if( m_subdivide ) { Patch_SubdivideSelected( ( m_subdivide != FALSE ), m_nHorz, m_nVert ); } } Sys_UpdateWindows( W_CAMERA | W_XY ); }