谢了~
解决方案 »
- GetModuleFileNameEx运行时出错~~
- 改变控件背景色,OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)是唯一的方法吗?
- 求XTreme8.1源码
- 我的CListCtrl子类怎么显示不出来?
- 我在atl服务程序中加入了一个atl对话框出现下面错误,如何解决?
- 谁有操作ini配置文件的类?100分奉上!!!
- 请教:关于使用CRecordset类?
- 怎样替代IMoniker?
- vs08 中 如何 使用 *.tlh 文件??
- 请问各位高手 , 那有 UML 的电子书籍?
- 在VC中怎么使图标的背景色与所画的背景色相同
- 求教达人,关于视频播放帧间延时问题!
还有一个API,MessageBox(),四个参数的,都可以用。
int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK );Return ValueSpecifies the outcome of the function. It is 0 if there is not enough memory to create the message box.ParameterslpszTextPoints to a CString object or null-terminated string containing the message to be displayed.lpszCaptionPoints to a CString object or null-terminated string to be used for the message-box caption. If lpszCaption is NULL, the default caption “Error” is used.nTypeSpecifies the contents and behavior of the message box.
MessageBox
The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. int MessageBox(
HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
);
Parameters
hWnd
Identifies the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window.
lpText
Pointer to a null-terminated string containing the message to be displayed.
lpCaption
Pointer to a null-terminated string used for the dialog box title. If this parameter is NULL, the default title Error is used.
uType
Specifies a set of bit flags that determine the contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups of flags.