modal dialog click

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

  1. sachin jesukaran

    sachin jesukaran New Member

    Joined:
    Jan 28, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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
    MessageBox(hwndDlg1,_T("Clickme"),_T("Error"),MB_OK|MB_ICONINFORMATION);
    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
    DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG2), NULL, (DLGPROC)Dlg2);
    here to i am not able to click on the dialog box.

    please help me with this problem
    tahnk you
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice