窗体置前

                            将窗体自己置前:
SetForegroundWindow( Handle );

MDI子窗体的置前:
DefMDIChildProc( ChildForm.Handle, WM_SETFOCUS, 0, 0 );

将非MDI子窗体置前:
SetForegroundWindow( TheForm.Handle );  
                                

查看回复