Month: July 2007
-
Visual C++ 2008 Beta2 里面的Class Designer
Visual Studio 2008 Beta2中的Class Designer终于支持C++了,上面是一个MFC程序的类图,可以看到已经支持扩展MFC的宏了,可惜只能看不能重构代码。尽管Class Designer这功能相当不错,但是设计师们可能还是更习惯IBM 的Rational Rose Developer for Visual Studio和UML。我用Class Designer的C#支持的时候也就是加加注释而已,重构我更习惯用DevExpress提供的工具Refactor来做,类则用XSD.exe生成,因为Class Designer生成的属性只会扔NotImplementedException异常。 CSDN Tags: C++, Class Designer, Visual Studio 2008, Rational Rose, UML, C#, DevExpress, Refactor Visual C++项目组在做下一个版本的市场调查,有兴趣的可以去提提要求。
-
Handle NewWindow3 and ShowModalDialog in CHtmlView
CHTMLView does not support NewWindow3 as of MFC 9.0. It is relatively easy to add this support, given the event sink code in atlmfcsrcviewhtml.cpp Add the following into the declaration of the derived CHtmlView class (named CHtmlViewTestView in this example) void NewWindow3( IDispatch **ppDisp, VARIANT_BOOL *Cancel, DWORD dwFlags, BSTR bstrUrlContext, BSTR bstrUrl ); DECLARE_EVENTSINK_MAP() […]