|
Previous Top Next |
This template has one purpose: To duplicate a window structure so the window can be opened as either a SDI window or MDI window. This makes it possible to use the same window procedure from the application frame procedure as a MDI window as well as before the application frame is opened as a SDI window.
Label | This shows the label of the duplicate window. Note that this field is read-only and the window label cannot be changed. The label is the actual window label, prefixed with either SDI_ or MDI_ |
Condition | The condition to switch. If TRUE then what ever is the duplicated window is used. In this case the actual window is a MDI window so the duplicated window is a SDI window |
This will generate code that conditionally opens the SDI or MDI windows as shown below:
Note that during generation, this template WILL cause duplicate label warnings as shown below for every control that is on the window as they are indeed duplicated in the duplicated window. Those warnings can be safely ignored.