Home > Software engineering >  The small white, MFC single document model how to write the interface?
The small white, MFC single document model how to write the interface?

Time:10-12

Dialog box model can be directly drag controls, but single document mode as if there's no way, write interface to manually write a lot of code is?

CodePudding user response:

Two kinds of methods:
1, pure code written in. H declared in a variable, is added in the resource ID, finally in. CPP oncreate () created in the
2, add a dialog box, drag the control in your dialog box, and finally on the dialog box is loaded into the document

CodePudding user response:

The only different is the view

CodePudding user response:

The same, the create in the code,

CodePudding user response:

When choosing the view, using the formview oh isn't that a view of the dialog box

CodePudding user response:

The formview can drag controls

CodePudding user response:

Hello
I am a webmaster
this editionThis post has been long time no attention
Would you please timely junction post
If you think the problem not solved can press no satisfaction and post processing
In addition this edition is set up problems summary post
And has set up a page in top
The instructions are relevant provisions in the post
You can according to the regulation to submit your post links
If you currently do not want to "post just reply that
We will delete this junction post notice

See this reply many days without response
We will be forced to "post
Rules can be found in the interface interface version specific measures about moderator junction post work

CodePudding user response:

Learn to dynamically create Windows and control is the basic requirement of a Windows programmer, the above several said is correct, or dynamically create, want to use the formview, formview and dialog box is the same,

CodePudding user response:

Will create a class dialog box, choose CFormView base class, right-click the properties dialog box to lower level (the child), without borders (None)
Or in the choice of the last step in the new construction CFormView will be after the completion of a dialog box has no borders, directly on the top drag controls can display

CodePudding user response:

In the resources of the dialog box to add a dialog box

CodePudding user response:

The formview

CodePudding user response:

Too complicated, can use the interface library to implement the building to the effect of, for example, dazzle colour interface library
  • Related