VC6 0 MFC writes the menu itself problem

Updated on technology 2024-04-09
18 answers
  1. Anonymous users2024-02-07

    Whether you are in English or not.

    These dialog classes are titled programs or a single document program, which appear by clicking on the menu above.

    Classes below the class, right-click, add virtual function is to add a virtual function. 。Add a Windows message handler to create a Windows message response.

  2. Anonymous users2024-02-06

    Double-click on that GUI widget and you should be fine.

  3. Anonymous users2024-02-05

    Regarding creation, since the above is already new, then only one can be created;

    Regarding assert, this is an assertion sentence that is used in debug mode to illegally pop up an exception warning for variables, first with if(xx==null) afxmesseagebox but more convenient to debug;

    Regarding the position, it should be that your coordinate system has not been adjusted well, and it is not specific**, take a look at the description of the screentoclient function for yourself, and add it.

  4. Anonymous users2024-02-04

    Rectangle the crect directly to save the left mouse click, press the message to determine if the mouse clicked point in the correct function ptinrect is, if in the pop-up dialog box, if not, directly add at a different point.

  5. Anonymous users2024-02-03

    Did you write the greyed out event response to onmousemove?

  6. Anonymous users2024-02-02

    Your request is chic. You can only do this by drawing the menu yourself.

  7. Anonymous users2024-02-01

    Write your own class, don't inherit anyone, select genernic class in classtype, and then enter your class name such as ccalculate in classname, and then OK;

    Or add it yourself. h and. The cpp file is the header file of cclaculate and the source file of cclaculate, and the definition and implementation of the class in it.

  8. Anonymous users2024-01-31

    Select the general class, choose this one for all the classes you encapsulate, and choose the second one if you want to use the class that comes with the system.

  9. Anonymous users2024-01-30

    Close, delete the compilation folder (debug or release folder), and delete it all. Open ** and press Ctrl+W to recreate.

    Recompile again!

  10. Anonymous users2024-01-29

    1. First of all, open "New-" in the computer to create a workspace, (the workspace is used to save the project).

    2. Add a project in the workspace, right-click > to add the project to the workspace.

    3. Select MFC - EXE program.

    4. Select the static library and send the program to others, which can be run directly.

    5. Then right-click and select Compiler.

    6. Finally, click Run Program, and the program will come out.

  11. Anonymous users2024-01-28

    If it's just a window, you can just create it according to the wizard, but you shouldn't just create a window and do nothing, right? If you want to really use it, you can't grasp it in a few words.,It's not like VB.,You need to learn the operating mechanism of Windows、MFC.,It's not good to use it if you don't spend time learning.。

  12. Anonymous users2024-01-27

    Yes, you need to use the winmain function instead of the main function to write the interface program.

    I recommend a few books to you: Sun Xin's in-depth Visual C++ Programming, Windows C Programming Introduction and Improvement, Windows Core Programming (Fifth Edition).

    These are based on the Visual C++ compiler.

  13. Anonymous users2024-01-26

    The question is so vague ... You can use the wizard to create a demo program.

  14. Anonymous users2024-01-25

    Except for the menu, I didn't find any interface on the map.

    MFC Standard SDI Single Document The menu of the MDI multi-document program can be in the resource, see the example in your figure, which is also a single-document type program.

  15. Anonymous users2024-01-24

    First of all, you need to build a win32 type project, and then write a Windows program, and you will use the software interface you designed.

  16. Anonymous users2024-01-23

    This seems unlikely to be possible, but VC also provides tools for interface design, so you can design it yourself. Expect better answers to emerge.

  17. Anonymous users2024-01-22

    Add controls directly, or add custom controls.

  18. Anonymous users2024-01-21

    You can call MFC to design the software interface by yourself!

Related questions
21 answers2024-04-09

Prefix self-addition and suffix self-addition are different, and prefix self-addition is used after self-adding, such as printf("%d,%d",++d,d);Here, although the calculation time is from right to left, when calculating to ++d, the computer explicitly calculates the value of d first and then uses it, and the suffix self-addition uses the additional one, so printf("%d,%d",c,c++) after the compilation result, the printf function uses a value that is 3, because it is used first, which is the result of the compiler's processing. You can only ask the person who designed the compiler in the first place. >>>More

8 answers2024-04-09

ctrl+w :classwzard

F7: View**. >>>More

5 answers2024-04-09

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-04-09

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

5 answers2024-04-09

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