Results 1 to 3 of 3

Thread: Dialog boxes

  1. #1
    Guest

    Post

    When i call a dialog box, how do i make it so that the user cant do anything else with the app until hes finished with the dialog?

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You can create a new class for your new dialog.Then declare a variable of your dialog class name type.Then you can use all the functions with your dlg.
    Note: You have to include your new class header file.
    Code:
    #include "YourDialogClassName.h"
    YourDialogClassName mydlg;
    mydlg.DoModal()
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    That's only for MFC. In normal terms, use the DialogBox function to make a modal dialogue box.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width