我想向框架窗口添加对话框
1:在CMainFrame.h中
public:
CDialogBar m_wndColorDlgBar;
2:OnCreate()中添加
if (!m_wndColorDlgBar.Create(this,IDD_DIALOGBAR,CBRS_BOTTOM,AFX_IDW_CONTROLBAR_LAST-1))
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
和
m_wndColorDlgBar.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndColorDlgBar);编译时没有错误
运行时出现错误对话框,主要内容如下:
Program:D:\Dialog\debug\Dialog.exe
File:bardlg.cpp
Line:48怎么回事啊????
1:在CMainFrame.h中
public:
CDialogBar m_wndColorDlgBar;
2:OnCreate()中添加
if (!m_wndColorDlgBar.Create(this,IDD_DIALOGBAR,CBRS_BOTTOM,AFX_IDW_CONTROLBAR_LAST-1))
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
和
m_wndColorDlgBar.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndColorDlgBar);编译时没有错误
运行时出现错误对话框,主要内容如下:
Program:D:\Dialog\debug\Dialog.exe
File:bardlg.cpp
Line:48怎么回事啊????
解决方案 »
- 菜鸟求助,请各路大神帮帮忙
- MFC用什么办法才能刷新透明背景下变化的字体呢?
- InfoZip算法的使用
- 如何使用API : RemoveMenu函数?
- 很急的问题在线等,socket封装到dll里的问题
- 请问在调用SQL SERVER的用户存储过程时,得到的结果记录集只有字符型的字段值,而没有数字类型的字段值?
- 如何在treeview里面改变listview的值?
- 在richedit中插入了一个activex,怎么控制richedit中插入了的activex呢?它的接口怎么得到?
- 请问如何实现下面循环????
- MFC与标准库(STL)
- 运行到第4982次出错?? 为什么???
- 突然想玩弄一下瑞星杀毒软件
怎么才能debug进去?
先设置断点(就是工具栏上的那个手形的东东),然后按F10,看调试栏里的情况.