MFC中函数作用
我刚用MFC 看到好多地方在一段程序后面加了UpdateData(FALSE/true) 这是干什么用的啊?那位告诉下 谢谢?<BR><P>BOOL UpdateData(<BR> BOOL bSaveAndValidate = TRUE <BR>);<BR>Parameters<BR>bSaveAndValidate <BR>Flag that indicates whether dialog box is being initialized (FALSE) or data is being retrieved (TRUE). <BR>Return Value<BR>Nonzero if the operation is successful; otherwise 0. If bSaveAndValidate is TRUE, then a return value of nonzero means that the data is successfully validated.</P>
<P>Remarks<BR>The framework automatically calls UpdateData with bSaveAndValidate set to FALSE when a modal dialog box is created in the default implementation of CDialog::OnInitDialog. The call occurs before the dialog box is visible. The default implementation of CDialog::OnOK calls this member function with bSaveAndValidate set to TRUE to retrieve the data, and if successful, will close the dialog box. (If the Cancel button is clicked in the dialog box, the dialog box is closed without the data being retrieved.)<BR><BR>找到英文的解释了,楼主说的是MFC里的东东啊[em09]</P> <P>是的,就是这东东,[em01]</P> 谢谢了[em01]
页:
[1]
