发布于 2007-01-10 16:58:43
0楼
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
);
当uType参数包含MB_OKCANCEL时,则函数返回值为IDOK或IDCANCEL。
当uType参数包含MB_YESNO时,则函数返回值为IDYES或IDNO。
对这个返回结果作个判断,分别处理相应的事件。
无论成与败,无论甜与苦,我还是我。