Visual Studio 2022, Version 17.13.3, just in case
I discovered this quite by accident and am surprised that no one mentioned it.
Create an MFC project in C++. I suspect this will work for other languages.
Drag and edit control onto the dialog. Right click, Add Variable, name it, take the defaults.
VS adds to the dialog class, the class created with Dlg postfixed to the project name.
Go to the dialog class, scroll down to method OnInitDialog() and find the comment just above the line: return TRUE;
Put the cursor at the end of the comment line and press enter. On my computer, within a few seconds, VS displayed this line of code:
cv_edit_01.SetWindowTextW(_T("Hello World!"));
It was displayed with a gray shadow text. Press tab to accept the prompt and insert the suggested code. Do it a few times for more suggestions.
cv_edit_01 is the name of my variable. Build and run, the dialog has that text.
Complications: My bing.com searches and other search results either would not show what I requested, or showed some lines of code that did not make sense. (To me anyway)
I had done the search: microsoft class description for cedit class
It provided much information, but not how to prepare it for use. After finding out how to get started with it, the Microsoft web page about the class is great.
I suspect that many people already know this, but wonder why no one mentioned it.
Oh well. Got it now.