Dialog with different controls created at runtime
-
I have an editor applications which should bring up a window or dialog with the list of keywords. Based on the selected keyword the window should show the appropriate controls in the window. Filling up input into these controls and clicking insert the keyword should get inserted into the editor. PLease someone help with some ideas on this.
-
I have an editor applications which should bring up a window or dialog with the list of keywords. Based on the selected keyword the window should show the appropriate controls in the window. Filling up input into these controls and clicking insert the keyword should get inserted into the editor. PLease someone help with some ideas on this.
The simplest approach is, that you create all controls in Dialog editor. In
OnInitDialog
you parse the keywords and setCWnd::ModifyStyle(WS_VISIBLE, 0, 0)
to appropriate controls. This function makes the controls invisible. Robert-Antonio "Love without sex is like a fish without antlers" -
The simplest approach is, that you create all controls in Dialog editor. In
OnInitDialog
you parse the keywords and setCWnd::ModifyStyle(WS_VISIBLE, 0, 0)
to appropriate controls. This function makes the controls invisible. Robert-Antonio "Love without sex is like a fish without antlers"also, I would put each set into a vector collection so that for each collection you can use the iterator to iterate through each one and set the visibility appropriately. Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store My articles[^] bdiamond :zzz: