Which is a dialog box shows the complete message, please?
Time:09-24
I use MFC to set up a dialog box procedure, put an edit box on the dialog box, adds a string variable; Effect is when the program is running, the dialog box is displayed, in the edit box shows the string; Idea is when after the success of the dialog displays the clothes with setwindowtext edge in the edit box, but don't know which message dialog displays success will send? A great god, please give directions, create and initdialog message response, dialog box is not displayed, so these two should not! I am a novice, thank you!
CodePudding user response:
Can add in OnInitDialog, regardless of when DoModal modal or Create a modal, will be called to the OnInitDialog, although not shown here, but the window has been created and therefore will not lead to collapse, such as window is invalid Can also be DDX_Text etc
CodePudding user response:
After the setwindowtext RedrawWindow That shows success
CodePudding user response:
Call in OnInitDialog SetDlgItemText ~
CodePudding user response:
OnInitDialog is when creating the window, but there was no mapped ~