Thread: creating modeless dialog

  1. #1
    Unregistered
    Guest

    Question creating modeless dialog

    Hi!
    I created a dialog resource with only text controller on it, like
    "Hold on...Searching för contact..."
    Then I use this cod in adequate function:
    CDialog* pDlg;
    pDlg=new CDialog;
    pDlg->Create(IDD_WAITING , NULL);
    pDlg->ShowWindow(SH_SHOW);
    ...
    delete pDlg;

    There's one problem though, the dialogbox is displayed without text controller on it.

    Does anyone know why this happens?
    Sholud I use SetDlgText(...) to display text on dialogbox instead...

    regards
    new to MFC

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    25
    rebuild the project....(rebuild all) and insure that you provide enough time for the dialog to display....
    Also why don't you create your CDialog derived class for more control....
    inZane
    --true programmer's don't comment--
    --programmer wannabes complain about it--

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Fixing Z-order on a modeless dialog?
    By Viper187 in forum Windows Programming
    Replies: 6
    Last Post: 06-20-2008, 07:10 PM
  3. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  4. Creating a modeless property sheet
    By axr0284 in forum Windows Programming
    Replies: 6
    Last Post: 01-12-2005, 06:29 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM