MFC modeless dialog close immediately

前端 未结 2 1742
囚心锁ツ
囚心锁ツ 2021-01-15 23:16

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:38

    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.

提交回复
热议问题