44 references to GetWindowLong
System.Windows.Forms (34)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1250
IntPtr currentWndproc = PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
3211
void* wndProc = (void*)PInvokeCore.
GetWindowLong
(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
3235
_wndprocAddr = PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
System\Windows\Forms\Application.cs (1)
1234
((WINDOW_STYLE)PInvokeCore.
GetWindowLong
(handle.Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
30
HWND parentHandle = (HWND)PInvokeCore.
GetWindowLong
(MainForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Application.ThreadContext.cs (1)
750
hwndOwner = (HWND)PInvokeCore.
GetWindowLong
(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Control.cs (5)
3635
get => (WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
3644
get => (WINDOW_STYLE)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
4761
if (((WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(_window, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE))
10721
int styleFlags = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
11150
if (((WINDOW_STYLE)PInvokeCore.
GetWindowLong
(lastParentHandle, WINDOW_LONG_PTR_INDEX.GWL_STYLE))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1129
PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE));
1506
WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
639
int currentStyle = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
4555
int style = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
364
&& ((WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(_editTextBox, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE)).HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
268
hWnd = (HWND)PInvokeCore.
GetWindowLong
(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
315
int currentStyle = unchecked((int)((long)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)));
1869
int style = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
1876
int style = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
243
nint currentSubClass = PInvokeCore.
GetWindowLong
(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
System\Windows\Forms\Form.cs (4)
3903
HWND ownerHandle = (HWND)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
3958
hWndOwner = (HWND)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
5489
if (PInvokeCore.
GetWindowLong
(ownerHwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == HWND)
5743
if (PInvokeCore.
GetWindowLong
(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == Handle)
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (1)
25
HWND parent = (HWND)PInvokeCore.
GetWindowLong
(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Internal\Win32WindowExtensions.cs (1)
10
WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(
System\Windows\Forms\NativeWindow.cs (5)
303
_priorWindowProcHandle = (void*)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
312
_windowProcHandle = (void*)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
318
&& ((WINDOW_STYLE)(uint)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD)
319
&& PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_ID) == 0)
841
void* currentWindowProc = (void*)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
726
int style = unchecked((int)((long)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)));
System\Windows\Forms\WindowSubclassHandler.cs (1)
183
void* currentWindowProcedure = (void*)PInvokeCore.
GetWindowLong
(
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
110
hWnd = (HWND)PInvokeCore.
GetWindowLong
(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (3)
116
HWND parent = (HWND)PInvokeCore.
GetWindowLong
(
203
hWndDescendant = (HWND)PInvokeCore.
GetWindowLong
(hWndDescendant, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
220
int style = (int)PInvokeCore.
GetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
76
(WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(hWnd, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
79
(WINDOW_STYLE)PInvokeCore.
GetWindowLong
(hWnd, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System.Windows.Forms.Tests (4)
System\Windows\Forms\FormTests.cs (3)
206
WINDOW_EX_STYLE extendedStyle = (WINDOW_EX_STYLE)PInvokeCore.
GetWindowLong
(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
1094
WINDOW_EX_STYLE extendedStyle = unchecked((WINDOW_EX_STYLE)(long)PInvokeCore.
GetWindowLong
(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE));
1100
extendedStyle = unchecked((WINDOW_EX_STYLE)(long)PInvokeCore.
GetWindowLong
(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE));
TextBoxBaseTests.cs (1)
2406
WINDOW_STYLE style = (WINDOW_STYLE)PInvokeCore.
GetWindowLong
(control, WINDOW_LONG_PTR_INDEX.GWL_STYLE);