Hi 嗷呜的土拨鼠,
There are many controls in MFC, which are only a part of controls in Toolbox, and many controls need to be manually created by you.
Here I will show you how to create a control manually:
CEdit m_edit;
CRect rect(85, 110, 180, 210);
m_edit.Create(WS_CHILD | WS_VISIBLE | WS_TABSTOP |
ES_AUTOHSCROLL | WS_BORDER,
rect, this, IDC_EXTRA_EDIT);
m_edit.SetFocus();
The above code can create a CEdit control. You could click on the hyperlink on the left of this document, there are many MFC classes for you to learn.
Best regards,
Elya
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.