I need to create a child window (Not a new whole screen). This will be used to ask the user questions.
- Sometimes I want a child window with 1 button, 2 buttons, 3 buttons etc.
- There will be several text boxes where the text that will hold e.g. the question I want to ask.
- The buttons will have text on them (This text will change depending on the question asked, e.g. “YES” “NO”, “APPLE” etc.)
- I want to get the return value of the question e.g. Button selected = “APPLE”.
I was able to do this using MFC by creating a Dialog window that accepted variables in its constructor such as: noOfButtons=2, button1Colour=RED, button2Colour=GREEN,button1Text=“APPLE”, button2Text=“ORANGE”,questionText=“What is your fav fruit?”
Instead of always creating each window from scratch (e.g. one window with two buttons, one window with three buttons), is there a way I can create a ‘master’ child window and pass it certain parameters that will define its layout.
How can I accomplish something like this ??
Many thanks. [import]uid: 77494 topic_id: 12721 reply_id: 312721[/import]
[import]uid: 3826 topic_id: 12721 reply_id: 46624[/import]