Hi,
I'm calling a modal dialog from a java application. But if I click out of that, dialog is minimizing which I don't want because it is a modal dialog box. I have tried by giving property WS_EX_TOPMOST but it is always showing dialog on top even if I switch to other applications.
I have two scenarios where I have to launch my dialog
1. From a MFC application which is working fine.
2.From a Java application which is not working as a modal dialog.
so can anyone give any sugestions how can I make my dialog as modal only even if I call from other application.
Thanks.
What I have tried:
MysampleModalDailogObj->CreateModal(WS_EX_CONTROLPARENT, sl,
WS_OVERLAPPED|WS_SYSMENU|WS_CAPTION|WS_BORDER|WS_POPUP|WS_THICKFRAME,
0,0,tempcx, tempcy, NULL, 0)
rtn = MysampleModalDailogObj->DoModal();
if(rtn == IDOK)
{}
else
{}