问一下,在MFC中怎么使一个控件的类型改为自己的类型。 比如说自己建了一个CDDButton这个类,是从CButton派生出来的,而我在对话框上创建的是一个CButton的控件,那么把这个控件改为CDDButton类型.
解决方案 »
- 纠结的10061,急救!
- 多线程到底用在何处?比如2个线程各自写一个100M的文件,如果while(1)内不Sleep(1),则cpu100%,加了后,速度无法忍受。
- 怎样设置一个非活动窗口窗口为活动窗口
- 会COM和ADO的达人请进.莫名其妙的问题!
- 关于CPU时间片的问题,在线等待!
- 一个用PB编译生成的可执行程序,为什么在Windwos下能看到程序版本信息,在我的VC++程序中看到的却是乱码?
- 急急!求助各位大虾
- 高手指点:我用VC写安装程序,路径选择那个对话框是否有专门的函数和控件可以调用?
- 请教CString/format的用法!
- 求批量修改文件名的程序?
- 关于获取系统图标列表的奇怪问题
- 怎么通过http实现,上传本地文件到HTTP服务器啊???急!
我把CButton改为自己的类CDDButton(这类也是从CButton派生出来的)变为CDDButton btnMybt;
为什么会报错啊?
错误信息有七条:
e:\vcstudy\adodatabase\adodatabasedlg.h(23) : error C2146: syntax error : missing ';' before identifier 'm_btnInsert'
e:\vcstudy\adodatabase\adodatabasedlg.h(23) : error C2501: 'CNewButton' : missing storage-class or type specifiers
e:\vcstudy\adodatabase\adodatabasedlg.h(23) : error C2501: 'm_btnInsert' : missing storage-class or type specifiers
E:\VCStudy\ADODataBase\ADODataBaseDlg.cpp(79) : error C2065: 'm_btnInsert' : undeclared identifier