InterviewSolution
| 1. |
How To Initialize Contents Of A Dialog? |
|
Answer» In MFC, the contents of a DIALOG are INITIALIZED if they are ASSOCIATED with their CORRESPONDING data members. This is done through "UpdateData(FALSE)" function. The control data is transferred to the data members through "UpdateData(TRUE)". In WIN32, the dialog data in controls can be initialized during WM_INITDIALOG CALL. The control data can be updated to the dialog members using apppropriate "SendMessage" functions. In MFC, the contents of a dialog are initialized if they are associated with their corresponding data members. This is done through "UpdateData(FALSE)" function. The control data is transferred to the data members through "UpdateData(TRUE)". In WIN32, the dialog data in controls can be initialized during WM_INITDIALOG call. The control data can be updated to the dialog members using apppropriate "SendMessage" functions. |
|