Re: Help in creating dialog based application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Have you considered a tabbed dialog with these being sheets in the tab?

Generally, you wouldn't want to destroy them; it is more likely you'd want to just hide
them. But the way you would notify the parent dialog to do anything is PostMessage
(normally SendMessage, but since you're about to destroy the dialog SendMessage would be a
bad idea.
joe

On Sun, 11 Nov 2007 22:12:41 -0800, Nash <jeevs007@xxxxxxxxx> wrote:

Hi,
I am creating a dialog based application which has a main dialog with
3 buttons.
1. Address Book
2. Student List
3. Course List

with which i can go to any one of the screens(which is again the
dialog). when i click address book button my main dialog should be
hidden/closed and i should open the address book dialog which has
again some button to navigate back to main dialog/student list/course
list. same kind of functionality for other two dialogs(student/course
list). i thought of creating all the 3 dialogs as modeless and main
dialog as parent but how i will inform the parent window to distroy
one window and create another window? for ex

if user clicks address book from main window and from there if he
clicks student list i have to close the address book and create
student list. how can i do it?

thanks in advance..
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Reflection problem when changing parent window
    ... sort of does something resemblinjg what you think it might do, but overall its use is just ... A more serious question is why you need to destroy the parent and then have the window ...
    (microsoft.public.vc.mfc)
  • Re: Reflection problem when changing parent window
    ... > After a while, I have to destroy the parent window, but I want to keep ... > everything in the tree intact, so what I do, before destroying the ...
    (microsoft.public.vc.mfc)
  • Re: Help in creating dialog based application
    ... you wouldn't want to destroy them; it is more likely you'd want to just hide ... But the way you would notify the parent dialog to do anything is PostMessage ... dialog as parent but how i will inform the parent window to distroy ... dialog which will create modeless dialogs so when i switch to some ...
    (microsoft.public.vc.mfc)
  • Re: Capture Window Closure and prevent it.
    ... Is there anyway to access a parents messages from the child? ... window to be closed. ... to destroy yourself or not. ... to control the parent window's lifetime, ...
    (microsoft.public.vc.atl)
  • Re: Does CreateParented destroys children automatically ????
    ... > When we create a child window using Create method, ... > are automatically destroyed when the parent is destrioyed. ... The 'Parent' is the control wrapping the containing window. ... When you destroy the parent, children are expected to be left parentless ...
    (comp.lang.pascal.delphi.misc)