[问题] MFC 建立Custom Control问题

楼主: CoronaMemory ( 啦?)   2014-12-17 14:51:03
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
vs2012 win 7
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
开启MFC dialog based project,无法使用custom control
开启方式如下 :
1. MFC> MFC Applicatrion >
http://ppt.cc/9Jl9
2. Application type :
http://ppt.cc/wt5M
喂入的资料(Input):
没有加上任何code,开启完project后,
从tool box 拉一个custom control,
放在dialog上 就会出现错误
预期的正确结果(Expected Output):
可以在tool box 拉 custom control来使用...
错误结果(Wrong Output):
log :
Warning: dialog creation failed, so application is terminating unexpectedly.
Warning: if you are using MFC controls on the dialog, you cannot #define
_AFX_NO_MFC_CONTROLS_IN_DIALOGS.
程式码(Code):(请善用置底文网页, 记得排版)
补充说明(Supplement):
查到网络上资料
http://blogs.msdn.com/b/vcblog/archive/2012/02/06/10263387.aspx
With _AFX_NO_MFC_CONTROLS_IN_DIALOGS not #defined, ...
standard static MFC libraries : 可使用custom control
With _AFX_NO_MFC_CONTROLS_IN_DIALOGS #defined
all static MFC library : 不能使用custom control
但是我 stdafx.h 里并没有 define "_AFX_NO_MFC_CONTROLS_IN_DIALOGS"
请问是设定或那些地方要更改吗? >"< 谢谢

Links booklink

Contact Us: admin [ a t ] ucptt.com