解决方案 »

  1.   

    窗口在create之前要注册的,你注册了吗?
      

  2.   


    系统自带的类是不用注册的 如EDIT BUTTON
      

  3.   

     可以用CreateDialogIndirectParam()
      

  4.   


    系统自带的类是不用注册的 如EDIT BUTTON系统的没问题,那你知道WinMain函数的返回值代表啥意思吗?
      

  5.   

    你在WinMain函数中的最后return 0
      

  6.   

    CreateDialogIndirectParam functionCreates a modeless dialog box from a dialog box template in memory. Before displaying the dialog box, the function passes an application-defined value to the dialog box procedure as the lParam parameter of the WM_INITDIALOG message. An application can use this value to initialize dialog box controls.
    创建 对话框 要 用 CreateDialogIndirectParam