首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

MessageBox 对话框不能展示

2013-01-05 
MessageBox 对话框不能显示在visual studio用MessageBox这个函数,函数执行,可是必须按一下Alt键,对话框才

MessageBox 对话框不能显示
在visual studio用MessageBox这个函数,函数执行,可是必须按一下Alt键,对话框才会出现。相同的代码在VC 6.0上用的时候,不会出现这样的问题,这是为什么呢?
[解决办法]
什么代码?
[解决办法]
没遇到过这种情况。
[解决办法]
不会这样吧,要按alt才会弹出?
[解决办法]
用AfxGetMainWnd()->MessageBox()
[解决办法]


int MessageBox(          HWND hWnd,
    LPCTSTR lpText,
    LPCTSTR lpCaption,
    UINT uType
);


hWnd
[in] Handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window.

热点排行
Bad Request.