1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

modal dialog click

Discussion in 'Win32' started by sachin jesukaran, Feb 14, 2009.

  1. sachin jesukaran

    sachin jesukaran New Member

    Jan 28, 2009
    Likes Received:
    Trophy Points:
    hello everyone,
    i need to open a modal dialog on my window for which i use the command
    DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hwndMain, (DLGPROC)Dlg1);
    where hwndMain is the window handlein which i want to open my modal dialog
    i have 2 buttons on my dalog box one is a OK button clicking on which should pop up a messagebox and a Open button, clicking on which should open another modal dialog IDD_DIALOG2 with parent IDD_DIALOG1.

    on clicking the OK button the code written is
    where hwndDlg1 is the handle of IDD_DIALOG1.but now i am not able to click on the message box.
    on clicking the Open button the code written is
    here to i am not able to click on the dialog box.

    please help me with this problem
    tahnk you

Share This Page