Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

functions needn't be created to custom dialog in the VC++ application

rockysheedyrockysheedy Member Posts: 9
Hello,

Pls explain me what is the difference between Modal and Modeless Dialog box and why functions needn't be created to custom dialog in the VC++ application with example if possible.

thanks & regards,
Rocky

Comments

  • zibadianzibadian Member Posts: 6,349
    : Hello,
    :
    : Pls explain me what is the difference between Modal and Modeless
    : Dialog box and why functions needn't be created to custom dialog in
    : the VC++ application with example if possible.
    :
    : thanks & regards,
    : Rocky
    :
    Modal dialog boxes don't allow the user to focus any other window within the same application. Modeless dialogs do allow this.
  • rockysheedyrockysheedy Member Posts: 9
    : : Hello,
    : :
    : : Pls explain me what is the difference between Modal and Modeless
    : : Dialog box and why functions needn't be created to custom dialog in
    : : the VC++ application with example if possible.
    : :
    : : thanks & regards,
    : : Rocky
    : :
    : Modal dialog boxes don't allow the user to focus any other window
    : within the same application. Modeless dialogs do allow this.

    You mean to say Modal Dialog is like File Open window and Modeless Dialog is like Find window.

    Could you please also explain why functions needn't be created in Custom Dialog in VC++ application?
  • zibadianzibadian Member Posts: 6,349
    : : : Hello,
    : : :
    : : : Pls explain me what is the difference between Modal and Modeless
    : : : Dialog box and why functions needn't be created to custom dialog in
    : : : the VC++ application with example if possible.
    : : :
    : : : thanks & regards,
    : : : Rocky
    : : :
    : : Modal dialog boxes don't allow the user to focus any other window
    : : within the same application. Modeless dialogs do allow this.
    :
    : You mean to say Modal Dialog is like File Open window and Modeless
    : Dialog is like Find window.
    :
    : Could you please also explain why functions needn't be created in
    : Custom Dialog in VC++ application?
    :
    I don't know the answer to that question, because I'm not a VC++ programmer.
  • rockysheedyrockysheedy Member Posts: 9
    : : : : Hello,
    : : : :
    : : : : Pls explain me what is the difference between Modal and Modeless
    : : : : Dialog box and why functions needn't be created to custom dialog in
    : : : : the VC++ application with example if possible.
    : : : :
    : : : : thanks & regards,
    : : : : Rocky
    : : : :
    : : : Modal dialog boxes don't allow the user to focus any other window
    : : : within the same application. Modeless dialogs do allow this.
    : :
    : : You mean to say Modal Dialog is like File Open window and Modeless
    : : Dialog is like Find window.
    : :
    : : Could you please also explain why functions needn't be created in
    : : Custom Dialog in VC++ application?
    : :
    : I don't know the answer to that question, because I'm not a VC++
    : programmer.

    Nevermind. Thanks for trying.
  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : : : Could you please also explain why functions needn't be created in
    : : : Custom Dialog in VC++ application?

    [color=Blue]I would answer that if only I understand what are you asking about? What is "custom" dialogs? The dialogs which have colored/bitmapped background? And how do you program ANYTHING without functions? Give me an example of the issue and I will try to answer.
    [/color]
  • rockysheedyrockysheedy Member Posts: 9
    : : : : Could you please also explain why functions needn't be created in
    : : : : Custom Dialog in VC++ application?
    :
    : [color=Blue]I would answer that if only I understand what are you
    : asking about? What is "custom" dialogs? The dialogs which have
    : colored/bitmapped background? And how do you program ANYTHING
    : without functions? Give me an example of the issue and I will try to
    : answer.
    : [/color]

    There is a Main Dailog which calls a Custom Dialog. The Custom Dailog has a Ok and Cancel button.

    #########################################################
    "For the custom dialog that you will add to your application, you will provide the user with a edit box in which to enter some text and a group of radio buttons from which the user can select one. When the user clicks the OK button, your application will display the text entered by the user in the display area of the main application dialog window. There is another button that the user can, can click to display which one of the radio buttons was selected. This exercise enables you to see how you can use custom dialog windows to gather information from the user and how you can read the user's selections after the dialog window is closed."

    I have the code of the Main Dialog box which is calling this custom dialog box as well as the code for Custom Dialog box. But this custom dialog box does not requires any Function, Why?
  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : : : : : Could you please also explain why functions needn't be created in
    : : : : : Custom Dialog in VC++ application?
    : :
    : : [color=Blue]I would answer that if only I understand what are you
    : : asking about? What is "custom" dialogs? The dialogs which have
    : : colored/bitmapped background? And how do you program ANYTHING
    : : without functions? Give me an example of the issue and I will try to
    : : answer.
    : : [/color]
    :
    : There is a Main Dailog which calls a Custom Dialog. The Custom
    : Dailog has a Ok and Cancel button.
    :
    : #########################################################
    : "For the custom dialog that you will add to your application, you
    : will provide the user with a edit box in which to enter some text
    : and a group of radio buttons from which the user can select one.
    : When the user clicks the OK button, your application will display
    : the text entered by the user in the display area of the main
    : application dialog window. There is another button that the user
    : can, can click to display which one of the radio buttons was
    : selected. This exercise enables you to see how you can use custom
    : dialog windows to gather information from the user and how you can
    : read the user's selections after the dialog window is closed."
    :
    : I have the code of the Main Dialog box which is calling this custom
    : dialog box as well as the code for Custom Dialog box. But this
    : custom dialog box does not requires any Function, Why?
    :
    [color=Blue]Of course, best way would have been just to post some code. So, "custom dialog" is just your normal Windows dialog. Why teachers keep reinventing terms?! Why "custom"?

    Ok, so are you using pure Win32 code or MFC code to make your dialogs? Also, when you say "does not require any Function" - you mean DLGPROC function? Because without that function dialog will not be able to do anything.

    In case you use MFC - the DLGPROC is written for you by MFC, but you still need functions in the MFC dialog to handle the radio button clicks.[/color]
Sign In or Register to comment.