First school MFC (1)

zhaozj2021-02-16  54

I used to use C language (although the level is very dish), sudden manager makes me do interface, which makes me can't work. No way, come slowly.

Yes, first step first to be familiar with the dialog. I first established an SDI program, then make a setting in the File menu, click the setting and then pop up a dialog. how should I do it? I do not know. Fortunately, there are so many enthusiasm for books and 9CBS.

After looking for, I finally learned:

1: First add a dialog in the resource

2: Establish this dialog

3: In the file where the dialog is to pop up, the header file containing the dialog class

4: Add the following code in the Settings function:

MYDIALOG M_MYDIALOG;

m_mydialog.domodal ();

Run, haha, a dialog appears. In this way, my first MFC program is completed.

I know that these are the easiest things, but there is a sense of accomplishment for my beginners. I want to write it out to record this process, and I also want to exercise the ability to write my own documents.

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

New Post(0)