读书人

MessageBox 对话框不能展示

发布时间: 2013-01-05 15:20:39 作者: rapoo

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.

读书人网 >C++

热点推荐