C# Class View3d, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

getHandle() static public méthode

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