摘要:
关于MVC结构模式无须多言,如下图所示: 在MFC中实现经典的MVC结构,如下图所示:注意:1、Document和View之间的绑定:View绑定到Document。2、Frame作为Controller时,由于可以接收到输入消息,比较适合充当控制器。但是,由于视图和文档绑定,所以在切换视图时需要将视图和文档分离开,然后再进行切换。3、View作为Contrller时,由于该视图和文档是绑定的,... 阅读全文
posted @ 2009-05-10 23:55
能巴
阅读(1437)
评论(0)
推荐(0)
摘要:
[MSDN:http://msdn.microsoft.com/en-us/library/xwz5tb1x(VS.80).aspx]Dialog Data Exchange If you use the DDX mechanism, you set the initial values of the dialog object's member variables, typically in y... 阅读全文
posted @ 2009-05-10 20:34
能巴
阅读(482)
评论(0)
推荐(0)
摘要:
1. Dll typesThree:Win32 dllMFC regular dllMFC extension dll2. MFC extension dllBasic[MSDN]:An MFC extension DLL is a DLL that typically implements reusable classes derived from the existing Microsoft ... 阅读全文
posted @ 2009-05-10 18:35
能巴
阅读(1771)
评论(0)
推荐(0)
摘要:
三个WINDOWS SDK函数: WinExec,ShellExecute ,CreateProcess,可以实现调用其他程序的要求。WinExec这个函数最简单,只有两个参数,原型如下: UINT WinExec( LPCSTR lpCmdLine, // 命令路径 UINT uCmdShow // 显示方式 ;使用方法如下:WinExec("Notepad.exe", SW_SHOW); //... 阅读全文
posted @ 2009-05-10 12:14
能巴
阅读(5634)
评论(0)
推荐(0)

浙公网安备 33010602011771号