MVC(model, view, control)好像比较好?
MFC framework和java struts都用这个架构,怎样才能使代码布局比较舒服?

解决方案 »

  1.   

    MFC就是了,按照msdn的指导布局代码,就很均衡。所有数据作为document的成员,所有对数据的处理(和界面无关),由document的方法实现。所有界面输入的响应在view的方法里面处理,所有有关显示数据的操作,在view的方法里处理。view和document之间的交互,使用CDocument::UpdateAllViews和CView::OnUpdate构成的observer模式结构来处理。其它事情由MFC document-view framework帮你做,不需要考虑。
      

  2.   

    could someone talk something about control?