MFC modeless dialog close immediately

前端 未结 2 2067
栀梦
栀梦 2021-01-15 23:10

I like to write a modeless dialog based app, but I have a problem. When the program starts, the window close immediately.

The same code works fine when I make a moda

2条回答
  •  时光说笑
    2021-01-15 23:53

    I'm not seeing anything that tells the application to stay alive after opening the modeless window. You need at least one 'modal' style window, or something else to control termination of the application.

提交回复
热议问题