How to Use different FormView base on a FALSE-TRUE condition ?

In my program i made two FormViews respectively IDD_FORM_MAIN_1 and IDD_FORM_MAIN_2 that i would like to choose in the header of my CFormView derived class exactly at the enum {IDD = IDD_FORM_MAIN} line of the .h file. i have an extern variable g_myCondition that may be set to TRUE or FALSE in the InitInstance() function of the application; so that the selection of IDD_FORM_MAIN_1 or IDD_FORM_MAIN_2 will depend on that.
I did not succeed doing that. How to make such a selection ?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!