المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Bypass Windows Message other than Open & Close



C# Programming
03-27-2012, 12:40 PM
Hey everybody,

I need to show a static Dialog having only a label "Please Wait" before a long process starts. Since both dialog & process are in the main thread, the dialog is frozen. Due to this, till the task is completed, if I click or drag the "Please Wait" Dialog, "End Process" pops in. Thus, I just need to bypass all the WINDOWS MESSAGES other than those needed for dlg.show() & dlg.close().

Please help me. To start with I know how to bypass the messages.

protected override void WndProc(ref Message m){ if (m.Msg == WM_CLOSE) // All the messages I need to handle base.WndProc(ref m);}
I just want to know what all messages I'll have to bypass. Also, is there any thing easier way to do this. Thanx in Advance. http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif