Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Also this issue is not happening in VC 6

I have Main application window is Wnd1 and it has launched a formview (Modeless dialog) dlg1 and dlg1 is launching dlg2 a modal dialog. So it has to block dlg1 from other user action. but why Wnd1?.
Once I have lauched dlg1 i will be able to do anything on Wnd1 right. So why launching of dlg2 should block Wnd1
Posted

That's what I'd expect domodal to do, I expect that Microsoft regards this as a bug fix, not a bug.
 
Share this answer
 
Comments
shwetha Raj 25-Aug-10 2:57am    
If dlg2 (modal dialog) is launched from dlg1 then I would expect dlg1 should be disable. Where dlg1 is a modeless dialog. So why lauching of dlg2 should block wnd1?
Like CG, I always understood modal to mean blocking all other windows for the same application. One way around it is for your Wnd1 to launch dlg1 as a separate process, but that is probably not what you want to do. You can see both kinds of behaviour with various Control Panel applets.

[edit in response to clarification] I think that the formview is NOT a separate process. One way to check is to use Task Manager (from Ctrl-Alt-Del menu) to look at processes running as you launch things. If no new process pops up when you open the formview, then my explanation above stands. I've got no idea what VC6 did/does, but you might be able to try the same experiment. [/edit]
 
Share this answer
 
v2
Comments
shwetha Raj 25-Aug-10 4:43am    
Let me clarify the question. I have a window applicaton which launches the main window "wnd1" and by clicking on icon in "wnd1" I will launch a formview "View1"(seperate process. Even when view1 is open i can perform other operations on wnd1). Now there is a button on "View1", by clicking on which I will display a modal dialog "dlg1".

Now the view1 should be disabled as it is the parent of the modal dialog. But why it is blocking/disabling "wnd1"?

Please give me your suggestion ASAP

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900