问题
i have using C++ win32 API.
i already craeate a dialogbox within a dialogbox using dailogboxparam function in bb class...
INT_PTR bb::DialogProc(UINT msg, WPARAM wp, LPARAM lp)
{
//some case and...
case IDC_OK:
DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_DIALOG),_hwnd,myfunctionDlgProc,lp);
break;
}
int CALLBACK bb::myfunctionDlgProc(HWND hDlg,UINT msg,WPARAM wp, LPARAM lParam)
{
//some code...
}
when i press the OK button in dialogbox...it shows myfunctionDlgProc Dialogbox...
Now,i want the same thing in my other aa class,now i am using messagebox..it have 2 buttons OK and Cancel...
if when i press messagebox ok button,i want to show the myfunctionDlgProc Dialogbox...
int retun;
retun = MessageBox(hDlg,(LPCWSTR)"",TEXT("Logon Message"), MB_OKCANCEL| MB_ICONWARNING);
if(retun=1)
{
DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_DIALOG),_hwnd,myfunctionDlgProc ,lp);
}
i try it...but how to i pass the lp value in this code...
DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_DIALOG),_hwnd,myfunctionDlgProc,lp);
Did u get my issue?
How can i achieve this?
来源:https://stackoverflow.com/questions/13171488/how-to-display-dialogboxparam-dialog-through-the-messagebox-buttonclick