Window Dialog Problem

This is a discussion on Window Dialog Problem within the Windows Programming forums, part of the Platform Specific Boards category; I'm having a problem with the dialog window...its the same as this one: http://cboard.cprogramming.com/showthread.php?t=54923 im doing it just to learn ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    19

    Window Dialog Problem

    I'm having a problem with the dialog window...its the same as this one: Dialog Buttons without resource files? im doing it just to learn and im not getting the dialog thing to show up either...

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    What do you see when the program creates the dialog window?

    Kuphryn

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    19
    just a plain window

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Make sure you give the dialog the WS_VISIBLE style, ie. with reference to the example you linked to, specifically the resource (.rc) file:
    Code:
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
    Alternatively put a call to ShowWindow in the WM_INITDIALOG handler for the dialog box.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dialog box problem keeps haunting me
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 08-23-2006, 01:12 AM
  2. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  3. dont want to use all params
    By stallion in forum Windows Programming
    Replies: 2
    Last Post: 02-18-2003, 07:10 AM
  4. problem with calling dialog
    By stallion in forum Windows Programming
    Replies: 11
    Last Post: 12-11-2002, 07:02 AM
  5. opening a dialog window from inside a dialog window
    By uvacow in forum C++ Programming
    Replies: 1
    Last Post: 12-02-2002, 08:27 AM

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