c++ - Changing dialog boxes -
c++ - Changing dialog boxes -
win32 api:
so let's have dialog box 2 menu items, "menu item a" , "menu item b"
when click "menu item a" want main screen of current dialog alter dialog a's screen
when click "menu item b" want main screen of current dialog alter dialog b's screen.
how this? i'm new win32 api, in advance!
the usual way have 2 kid 'container' dialogs children of outer frame window; let's phone call them dialoga , dialogb. these contain controls 2 respective dialogs. when want switch 1 other, utilize showwindow() show 1 dialog , hide other. in win32, hiding hwnd hides kid controls it, can hide , show groups of controls grouping them in sub-windows this.
that's overview of general technique. sub-dialogs, can either create them manually using createwindow(), or utilize createdialog() have windows work of creating kid controls dialog template you.
this technique property sheets , wizards do. (property sheets add together tab command instead of menus command gets displayed, while wizards have next/prev buttons.)
c++ winapi
Comments
Post a Comment