Dialog Based Applications

This is a discussion on Dialog Based Applications within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I've been looking for a tutorial (or part of one) that covers the creation of a dialog based application. ...

  1. #1
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269

    Dialog Based Applications

    Hi, I've been looking for a tutorial (or part of one) that covers the creation of a dialog based application. I haven't been able to find one though, only the creation of a dialog box. But I don't want to have a window... just the dialog. Thank you for any help.

    - SirCrono6

    P.S. Why do my posts never have more than 1-2 lines?

    Edit: Without MFC.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  2. #2
    Registered User
    Join Date
    Dec 2004
    Posts
    73
    The simple answer is not to create a window. Just create the dialog box.

    Code:
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    				   LPSTR iCmdLine, int iCmdShow)
    {
          DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1),
                           NULL, DialogProc);
          return 0;
    }
    Code:
    BOOL CALLBACK DialogProc(HWND hWnd, UINT iMsg, WPARAM wParam,
                                                 LPARAM lParam)
    {
          ....................................
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 01:59 PM
  2. stupid problem in Dialog based Apps by MFC
    By AsAdi in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2003, 12:47 PM
  3. Getting Key state in Dialog based app
    By Unregistered in forum Windows Programming
    Replies: 21
    Last Post: 07-19-2002, 08:05 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. can we minimize a dialog based application
    By vicky in forum Windows Programming
    Replies: 6
    Last Post: 09-27-2001, 07:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21