Summary: Add other works in an engineering to create a good dialog resource. (Or ...)

zhaozj2021-02-16  49

Thank you first: PGOOD (did not read the sea)

Because I used to use resources only, I have a solution to this problem is part of the RC file required for COPY, and the effect is extremely bad. If you use the resources and classes, you either re-created.

This method is also a method of complete classes in other projects. (He will insert the * .h and * .cpp file you need at the same time, even if there is no Dialog resource)

-------------------------------------------------- ----------------------- Step: 1, first generate a * .ogx file.

METHODS: Open the project containing the dialog resource for the added dialog box (other project). At an attempting to resource (ClassView), right-click the class (you can also need the class) At this time, you will see an "Add to Gallery" option in the right-click menu.

Select this option, then * .ogx file is generated. The generated file name will look similar to the class name of your dialog, but only the space will be in the middle (this irrelevant) key is where this file is generated! Under normal circumstances: C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / GALLERY / other project name directory

2, then it is insert this * .ogx file. That is, INSERT dialogue resources and this dialog class

Open the project you want to join, select Project-> Add to Project-> Components and Controls ... This time is a dialog box, the default open directory is: C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / Gallery Selects the directory of "other project name" in the dialog box, you will see the * .ogx file, select it, then INSERT. Last closed dialog.

At this point, you will see that the class of that dialog has appeared in your project, then go to Dialog in ResourceView, the resource of that dialog has appeared.

At this time, you need to change much.

转载请注明原文地址:https://www.9cbs.com/read-27312.html

New Post(0)