初学VC得困惑
BOOL CSpecialFileDialog::OnInitDialog()
{
BOOL bRet = CFileDialog::OnInitDialog();
if (bRet == TRUE) {
GetParent()->GetDlgItem(IDOK)->SetWindowText("Delete");
}
return bRet;
}
这段程序把一个FILEDIALOG上面得按钮换成了DELETE 我不明白BOOL
bRet = CFileDialog::OnInitDialog();
if (bRet == TRUE) {
是做什么用得?
MSDN: 我没理解这段话
virtual BOOL OnInitDialog( );
Return Value
Specifies whether the application has set the input focus to one of the controls in the dialog box. If OnInitDialog returns nonzero, Windows sets the input focus to the first control in the dialog box. The application can return 0 only if it has explicitly set the input focus to one of the controls in the dialog box.