⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_57005.htm

📁 vc
💻 HTM
字号:
<p>
序号:57005 发表者:vcTM 发表日期:2003-10-22 11:31:03
<br>主题:AfxMessageBox和MessageBox区别在哪?
<br>内容:&nbsp;&nbsp;AfxMessageBox和MessageBox区别在哪? 用的时候可以直接替换吗?具体这两个怎么用啊?有例子最好:P
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:福尔默斯 回复日期:2003-10-22 11:42:42
<br>内容:Win32 API 格式!<BR>int MessageBox(<BR>&nbsp;&nbsp;HWND hWnd,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// handle to owner window<BR>&nbsp;&nbsp;LPCTSTR lpText,&nbsp;&nbsp;&nbsp;&nbsp; // text in message box<BR>&nbsp;&nbsp;LPCTSTR lpCaption,&nbsp;&nbsp;// message box title<BR>&nbsp;&nbsp;UINT uType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// message box style<BR>);<BR><BR>MessageBox(&#34;成功&#34;,NULL,MB_OK);<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:红蚂蚁 回复日期:2003-10-22 11:53:10
<br>内容:MessageBox:Creates and displays a window that contains an application-supplied message and caption, plus a combination of the predefined icons and pushbuttons described in the Message-Box Styles list. Use the global function AfxMessageBox instead of this member function to implement a message box in your application.<BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:vcTM 回复日期:2003-10-22 13:19:57
<br>内容:&nbsp;&nbsp;可不可以理解为:AFXBX就相当于封装好的MB了呢? 用APPLICATION 建EXE时,程序中用的时候我还是不太清楚怎么用<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:张庆芳 回复日期:2003-10-22 22:05:40
<br>内容:AfxMessageBox是全局变量 <BR>int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );<BR><BR>而MessageBox是CWnd类的一个函数<BR>CWnd::MessageBox<BR>int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK );<BR><BR><BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -