C# Class View3d, code

Mostra file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
SwitchParentChildWindows ( bool bParentActive, object parent, object dlg ) : void

Switches between modal sub dialog and parent form, when sub dialog does not needs to be destroyed (e.g. selecting something from parent form)

getHandle ( object formOrWindow ) : IntPtr,

Extracts window handle in technology independent wise.

Private Methods

Method Description
BringWindowToTop ( IntPtr, hWnd ) : bool
EnableWindow ( IntPtr, hWnd, bool bEnable ) : bool
IsWindowEnabled ( IntPtr, hWnd ) : bool
SetForegroundWindow ( IntPtr, hWnd ) : bool
ShowWindow ( IntPtr, hWnd, int nCmdShow ) : bool

Method Details

SwitchParentChildWindows() static public method

Switches between modal sub dialog and parent form, when sub dialog does not needs to be destroyed (e.g. selecting something from parent form)
static public SwitchParentChildWindows ( bool bParentActive, object parent, object dlg ) : void
bParentActive bool true to set parent form active, false - child dialog.
parent object parent form or window
dlg object sub dialog form or window
return void

getHandle() static public method

Extracts window handle in technology independent wise.
static public getHandle ( object formOrWindow ) : IntPtr,
formOrWindow object form or window
return IntPtr,