37 references to GetWindowLong
System.Windows.Forms (37)
winforms\Managed\System\WinForms\Application.cs (3)
1309
Debug.Assert(((int)UnsafeNativeMethods.
GetWindowLong
(handle, NativeMethods.GWL_STYLE) & NativeMethods.WS_CHILD) != 0, "Only WS_CHILD windows should be parked.");
3428
hwndOwner = new HandleRef(null, UnsafeNativeMethods.
GetWindowLong
(new HandleRef(currentForm, currentForm.Handle), NativeMethods.GWL_HWNDPARENT));
4345
IntPtr parentHandle = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, MainForm.Handle), NativeMethods.GWL_HWNDPARENT);
winforms\Managed\System\WinForms\AxHost.cs (3)
1615
IntPtr currentWndproc = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);
3561
IntPtr wndProc = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);
3591
wndprocAddr = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_WNDPROC);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
319
IntPtr currentSubClass = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, hwndOwner), NativeMethods.GWL_WNDPROC);
winforms\Managed\System\WinForms\Control.cs (5)
4472
return unchecked((int)(long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_EXSTYLE));
4485
return unchecked((int)(long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE));
5978
if (0 != (NativeMethods.WS_EX_MDICHILD & (int)(long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(window, InternalHandle), NativeMethods.GWL_EXSTYLE))) {
12418
int styleFlags = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
12802
int style = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(null, lastParentHandle), NativeMethods.GWL_STYLE)));
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1638
int style = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_EXSTYLE)));
winforms\Managed\System\WinForms\Form.cs (10)
2104
int exStyle = unchecked((int)(long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_EXSTYLE));
4452
ownerHandle = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT);
4497
hWndOwner = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT);
6091
else if ( (owner != null) && ((int)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(owner, Control.GetSafeHandle(owner)), NativeMethods.GWL_EXSTYLE)
6107
if (UnsafeNativeMethods.
GetWindowLong
(new HandleRef(owner, hWndOwner), NativeMethods.GWL_HWNDPARENT) == Handle) {
6113
hWndOldOwner = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT);
6156
else if ( (owner != null) && ((int)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(owner, Control.GetSafeHandle(owner)), NativeMethods.GWL_EXSTYLE)
6208
if (UnsafeNativeMethods.
GetWindowLong
(new HandleRef(owner, hWndOwner), NativeMethods.GWL_HWNDPARENT) == Handle) {
6214
hWndOldOwner = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT);
7755
IntPtr parent = UnsafeNativeMethods.
GetWindowLong
(hRef, NativeMethods.GWL_HWNDPARENT);
winforms\Managed\System\WinForms\ListView.cs (2)
688
int currentStyle = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
4281
int style = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
winforms\Managed\System\WinForms\NativeWindow.cs (5)
613
defWindowProc = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);
629
windowProcPtr = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);
632
(unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_STYLE))) & NativeMethods.WS_CHILD) != 0 &&
633
unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_ID))) == 0) {
1365
IntPtr currentWinPrc = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
420
int exStyle = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(edit, edit.Handle), NativeMethods.GWL_EXSTYLE)));
5683
hWnd = UnsafeNativeMethods.
GetWindowLong
(new HandleRef(null, hWnd), NativeMethods.GWL_HWNDPARENT);
winforms\Managed\System\WinForms\ToolTip.cs (2)
898
int style = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
1210
bool isWindowMirrored = ((unchecked((int)(long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, hWnd), NativeMethods.GWL_STYLE)) & NativeMethods.WS_EX_LAYOUTRTL) == NativeMethods.WS_EX_LAYOUTRTL);
winforms\Managed\System\WinForms\TreeView.cs (3)
358
int currentStyle = unchecked((int)((long)UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
1992
int style = unchecked((int)(UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));
1998
int style = unchecked((int)(UnsafeNativeMethods.
GetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE)));