The VC creation window is not displayed, and the window to the left of vc 6 0 is gone

Updated on number 2024-05-10
3 answers
  1. Anonymous users2024-02-10

    There are several errors in your program:

    hwnd = createwindow ("phoenix","null",ws_overlappedwindow,cw_usedefault,cw_usedefault,cw_usedefault, cw_usedefault, null,null,hinstance, null);The first mistake.

    showwindow (hwnd, ncmdshow);The second mistake.

    Modify the window as follows to display the window normally.

    hwnd = createwindow ("wootao system","xx",ws_overlappedwindow,cw_usedefault,cw_usedefault,cw_usedefault, cw_usedefault, null,null,hinstance, null);

    showwindow (hwnd, sw_show);

    You should note that the first argument to createwindow is the class name, which is to be the same as you are in ="wootao system";specified in"wootao system"It's exactly the same, the second parameter is the window name, which is arbitrary, but I recommend that you don't use something similar for the sake of the coding specification"null"and so on.

    the second question, showwindow (hwnd, ncmdshow); It's just a function prototype, you should modify the parameters according to the actual situation when calling, for example, if you want to display the window, ncmdshow should be replaced by sw show, and hide the window with sw hide, you can check msdn for details. Also, the first argument of showwindow doesn't have to be hwnd, it's just because you use it in your program.

    hwnd = createwindow() creates a window, and hwnd is the returned window handle, so it just so happens that you can use hwnd in showwindow, in fact, hwnd here is just a name, if you like, you can change it to xyz of course i don't recommend you do that.

  2. Anonymous users2024-02-09

    The last sentence of your program is wrong, that is, the wndproc** function, which cannot be returned but should return the default window execution process:

    return

    defwindowproc

    hwnd,message,wparam,lparam) write the program carefully.

  3. Anonymous users2024-02-08

    ProIf you find that the left window is missing in VC++, there are several possible solutions:1You can try using the shortcut F4 or Ctrl+Alt+M to restore the Class View window.

    2.If your Class View window is always hidden or missing, open the View option on the main menu and select Class View to reopen the window. 3.

    You can also try opening other sidebar windows from the Window menu (e.g., Finger Spikes, Resources, Tools, etc.) and drag them to the left to expand the window area. 4.If none of the above methods solve the problem, you can try resetting the layout of the vc++ respectful window.

    Open the "View" option of the main menu, select "Reset Window Layout", and confirm that the window layout is restored to the default settings. Hope the above workarounds will help you.

Related questions
8 answers2024-05-10

ctrl+w :classwzard

F7: View**. >>>More

5 answers2024-05-10

1.First of all, there is an installation package, there are many on the Internet, and it is not provided here. Click Installer, select the location for the installation, and then click Next all the way. Complete the installation. >>>More

21 answers2024-05-10

The pointer points to illegal memory, so let's look it up.

5 answers2024-05-10

First, go to the VC6 environment, click on the File option in the upper left corner, select New, and create a project. Select Win32 Console Application, name AA, and click OK and Finish. >>>More

17 answers2024-05-10

Open the program directory and double-click the file with the suffix dsw. >>>More