Thread: using DialogEX

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    202

    using DialogEX

    I was looking through the different resources of my program when I noticed I was using DialogBox instead of DialogEX. Now from what I understand the functions with EX at the end are extended and should be used instead of there none EX conterparts which are only included for Backwards compatiblity(am I right on this?). So I switched over to DialogEX and Started looking for the function to call them. I searched both my help files and MSDN and couldn't find anything. I also tried just using them as regular dialogs but that doesnt display anything. IS there a seprate command for calling DialogEx and if so what is it? If not I should go get some high caffine soda for debugging tonight(Coffee is disgusting).
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    DialogEx and Dialog are resource definition statements - if you use msvc++ then create a dialog resource and take a look at the script created with a text editor.

    DialogBox, DialogBoxParam are winapi fns for creating modal dialog boxes.

    CreateDialog,CreateDialogParam are winapi fns for creating modeless dialogs.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    Originally posted by Ken Fitlike
    DialogEx and Dialog are resource definition statements - if you use msvc++ then create a dialog resource and take a look at the script created with a text editor.

    **Acturally Im using BC++5.2 but I have seen dialog readout(I have even edited them as code instead of visual)

    DialogBox, DialogBoxParam are winapi fns for creating modal dialog boxes.

    ** I know that but was wondering if its a FN for creating the extended dialog

    CreateDialog,CreateDialogParam are winapi fns for creating modeless dialogs.
    ** This is about Model Dlgs
    I take it from your post that I should go get more soda and order a pizza(how else could you debug?)
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>Im using BC++5.2 ....was wondering if its (DialogBox, DialogBoxParam) a FN for creating the extended dialog>>

    You need the id of a dialog resource to pass to any of the dialog box creation fns. The type of dialog box created therefore depends on whether or not you use the Dialog or DialogEx resource definition statement within your resource script.

    For resource script semantics I attached a diy resource help file to this post/thread:

    http://www.cprogramming.com/cboard/s...threadid=11178

    Which you may or may not find useful.

    Pizza sounds great - and now i'm very, very hungry.

Popular pages Recent additions subscribe to a feed