emulating propertysheet
-
Hi All, I want to to have ActiveX on my porpertypages, and after searching, I found that I CAN'T do that, this is a known bug. Now I turn to a new way, I want to have a menubar, and clicking a button will show the corresponding page, however, I face another problem...:(( I call the page by DoModal, but, for example, when I call page1, then page2, then page1 again, the 3rd call will be a "NEW" page1, not the previous one... any suggestion on that ?? Thanks in advance.
-
Hi All, I want to to have ActiveX on my porpertypages, and after searching, I found that I CAN'T do that, this is a known bug. Now I turn to a new way, I want to have a menubar, and clicking a button will show the corresponding page, however, I face another problem...:(( I call the page by DoModal, but, for example, when I call page1, then page2, then page1 again, the 3rd call will be a "NEW" page1, not the previous one... any suggestion on that ?? Thanks in advance.
This is a nasty problem. Maybe you can do this using
CDialog
but you have to remember some issues: 1-Each dialog has its own toolbar, so you will not get away with just one toolbar for all dialogs. 2-Before showing the second dialog, you can end the first one. But this might cause screen flicker. 3-Why not use modeless dialogs? They can all coexist and you can show or hide them as needed. I suspect that for this solution, you would have to create a class to manage them all. Each modeless dialog would have a pointer to the manager (can be a non-window class) to have it hide one dialog and show the next. Hope I made some sense to you. Good luck!