我在基于 Dialog的 application 里, 在 主 Dialog 的 OnInitDialog function 里
返回 FALSE; 按理应该应该程序 exit的, 怎么和 返回 TRUE 没有什么区别 ?-------------------------------------------------------
I can't bear it... 
God save me !

解决方案 »

  1.   

    也许你的英文很好。So.....,tha anwser is :CDialog::OnInitDialog 
    virtual BOOL OnInitDialog( );Return ValueSpecifies 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.ResThis member function is called in response to the WM_INITDIALOG message. This message is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed. Override this member function if you need to perform special processing when the dialog box is initialized. In the overridden version, first call the base class OnInitDialog but disregard its return value. You will normally return TRUE from your overridden member function.
      

  2.   

    The application can return 0 only if it has explicitly set the input focus to one of the controls in the dialog box.
      

  3.   

    要enddialog或exit(0 /*或别的参数*/)
    return false or true;
    只是说做不做往下的部分
      

  4.   

    返回FALSE的时候,焦点不由对话框决定
      

  5.   

    fly2130(山高月小) : 我会给你分,我应该去看看MSDN - 忘了