Home>

I haven't programmed in WinApi for a long time, but I remember that before, when I created a project on WinAPi in VS, a window layout appeared, onto which you could drag controls (well, or maybe I did something for this). Now I created a c++ WinApi project, but no window layout was opened, only a window with c++ code. Can you please tell me how to open the layout? (I understand that the question is stupid, but I seem to have some kind of jump-start.)

  • Answer # 1

    You need to create a Dialog resource in the resource file (* .rc) of your project, and then the window layout will appear.

    Strange, but I seem to remember exactly that I had not edited this file before, but the window layout was still created ... In earlier versions of VS, was it automatically created? Or am I confusing something?

    shc3452021-03-14 13:58:22

    You then made an application based on a dialog, and now based on a window, which is created by code.

    Janycz2021-03-14 13:58:22

    Then another dumb question how to create an application not based on a dialogue?

    shc3452021-03-14 13:58:22

    As I described, the window code is removed, and write the code (DialogProc, DialogBox) for the dialog.

    Janycz2021-03-14 13:58:22

    Understood thanks.

    shc3452021-03-14 13:58:22