/reactos/win32ss/user/ntuser/ |
H A D | defwnd.c | 536 PWND Wnd, in IntDefWindowProc() argument 558 if (Wnd != NULL && Wnd->strName.Length != 0) in IntDefWindowProc() 637 Wnd != co_GetDesktopWindow(Wnd) ) in IntDefWindowProc() 725 co_IntSendMessage(UserHMGetHandle(Wnd), WM_APPCOMMAND, (WPARAM)UserHMGetHandle(Wnd), in IntDefWindowProc() 743 Style = Wnd->style; in IntDefWindowProc() 761 MENU_InitSysMenuPopup(SystemMenu, Wnd->style, Wnd->pcls->style, HitCode); in IntDefWindowProc() 881 PWND pwnd = Wnd; in IntDefWindowProc() 950 MENU_EndMenu( Wnd ); in IntDefWindowProc() 1013 co_UserSetFocus(Wnd); in IntDefWindowProc() 1091 if (Wnd->state2 & WNDS2_STARTPAINT && !RECTL_bIsEmptyRect(&Wnd->rcClient)) in IntDefWindowProc() [all …]
|
H A D | winpos.c | 201 if (Wnd && Wnd->fnid != FNID_DESKTOP ) in IntClientToScreen() 215 if (Wnd && Wnd->fnid != FNID_DESKTOP ) in IntScreenToClient() 432 if (Wnd) in co_WinPosActivateOtherWindow() 576 WinPosInitInternalPos(Wnd, &Wnd->rcWindow); in IntGetWindowPlacement() 680 if (!Wnd || Wnd == Wnd->head.rpdesk->pDeskInfo->spwnd) return FALSE; in IntSetWindowPlacement() 869 if(HAS_DLGFRAME(Wnd->style, Wnd->ExStyle) && !(Wnd->style & WS_MINIMIZE)) in IntGetWindowBorderMeasures() 876 if(HAS_THICKFRAME(Wnd->style, Wnd->ExStyle)&& !(Wnd->style & WS_MINIMIZE)) in IntGetWindowBorderMeasures() 881 else if(HAS_THINFRAME(Wnd->style, Wnd->ExStyle)) in IntGetWindowBorderMeasures() 2418 …lParam = MAKELONG(Wnd->rcClient.left-Wnd->spwndParent->rcClient.left, Wnd->rcClient.top-Wnd->spwnd… in co_WinPosSendSizeMove() 3410 PWND Wnd; in NtUserGetWindowPlacement() local [all …]
|
H A D | focus.c | 365 if (Wnd) in IntActivateWindow() 367 Wnd = VerifyWnd(Wnd); in IntActivateWindow() 780 if (Wnd && !VerifyWnd(Wnd)) in co_IntSetForegroundMessageQueue() 790 if (Wnd) in co_IntSetForegroundMessageQueue() 932 HWND hWnd = Wnd ? UserHMGetHandle(Wnd) : NULL; in co_IntSetForegroundAndFocusWindow() 937 if (Wnd) ASSERT_REFS_CO(Wnd); in co_IntSetForegroundAndFocusWindow() 1050 if ( !Wnd || Wnd == UserGetDesktopWindow() ) in co_IntSetActiveWindow() 1115 (Wnd && !VerifyWnd(Wnd)) || in co_IntSetActiveWindow() 1192 while (Wnd) in IntUserSetActiveWindow() 1256 if (Wnd && (Wnd->ExStyle & WS_EX_NOACTIVATE)) in co_IntMouseActivateWindow() [all …]
|
H A D | vis.c | 14 PWND Wnd, in VIS_ComputeVisibleRegion() argument 22 if (!Wnd || !(Wnd->style & WS_VISIBLE)) in VIS_ComputeVisibleRegion() 44 PreviousWindow = Wnd; in VIS_ComputeVisibleRegion() 45 CurrentWindow = Wnd->spwndParent; in VIS_ComputeVisibleRegion() 103 CurrentWindow = Wnd->spwndChild; in VIS_ComputeVisibleRegion() 129 if (Wnd->hrgnClip && !(Wnd->style & WS_MINIMIZE)) in VIS_ComputeVisibleRegion() 134 REGION_bOffsetRgn(VisRgn, -Wnd->rcWindow.left, -Wnd->rcWindow.top); in VIS_ComputeVisibleRegion() 136 REGION_bOffsetRgn(VisRgn, Wnd->rcWindow.left, Wnd->rcWindow.top); in VIS_ComputeVisibleRegion() 146 PWND Wnd, in co_VIS_WindowLayoutChanged() argument 152 ASSERT_REFS_CO(Wnd); in co_VIS_WindowLayoutChanged() [all …]
|
H A D | painting.c | 139 ptiWnd = Wnd->head.pti; in IntSendSyncPaint() 217 Wnd->rcClient.top, in IntCalcWindowRgn() 225 Wnd->rcWindow.top, in IntCalcWindowRgn() 230 if (Wnd->hrgnClip != NULL && !(Wnd->style & WS_MINIMIZE)) in IntCalcWindowRgn() 237 Wnd->rcWindow.left, in IntCalcWindowRgn() 496 if (Wnd->head.pti != pti && Wnd->style & WS_CHILD) in co_IntPaintWindows() 524 if ( Wnd->hrgnUpdate != NULL || Wnd->state & WNDS_INTERNALPAINT ) in co_IntUpdateWindows() 526 if (Wnd->hrgnUpdate) in co_IntUpdateWindows() 672 if (!Wnd->hrgnClip || (Wnd->style & WS_MINIMIZE)) in IntInvalidateWindows() 1555 co_UserShowCaret(Wnd); in IntEndPaint() [all …]
|
H A D | window.c | 966 WndSetPrev(Wnd->spwndNext, Wnd); in IntLinkWindow() 968 ASSERT(Wnd != Wnd->spwndPrev); in IntLinkWindow() 969 WndSetNext(Wnd->spwndPrev, Wnd); in IntLinkWindow() 977 WndSetPrev(Wnd->spwndNext, Wnd); in IntLinkWindow() 979 WndSetChild(Wnd->spwndParent, Wnd); in IntLinkWindow() 1171 if (Wnd == Wnd->head.rpdesk->spwndMessage) in co_IntSetParent() 1359 ASSERT(Wnd != Wnd->spwndNext); in IntUnlinkWindow() 1360 ASSERT(Wnd != Wnd->spwndPrev); in IntUnlinkWindow() 1368 if (Wnd->spwndParent && Wnd->spwndParent->spwndChild == Wnd) in IntUnlinkWindow() 4437 if (!Wnd->spwndOwner && !IntGetParent(Wnd)) in DefSetText() [all …]
|
H A D | windc.c | 356 if (NULL == Wnd) in UserGetDCEx() 383 if (Wnd->pcls->pdce) hDC = ((PDCE)Wnd->pcls->pdce)->hDC; in UserGetDCEx() 399 if (Wnd->style & WS_MINIMIZE && Wnd->pcls->spicn) in UserGetDCEx() 419 Parent = (Wnd ? Wnd->spwndParent : NULL); in UserGetDCEx() 421 if (NULL == Wnd || !(Wnd->style & WS_CHILD) || NULL == Parent) in UserGetDCEx() 473 else if (Dce->hwndCurrent == (Wnd ? UserHMGetHandle(Wnd) : NULL) && in UserGetDCEx() 492 Dce->hwndCurrent = (Wnd ? UserHMGetHandle(Wnd) : NULL); in UserGetDCEx() 611 if ( Wnd && in UserGetDCEx() 947 UserGetWindowDC(PWND Wnd) in UserGetWindowDC() argument 956 PWND Wnd; in UserGethWnd() local [all …]
|
H A D | winpos.h | 75 UINT FASTCALL IntGetWindowSnapEdge(PWND Wnd); 76 VOID FASTCALL co_IntCalculateSnapPosition(PWND Wnd, UINT Edge, OUT RECT *Pos); 77 VOID FASTCALL co_IntSnapWindow(PWND Wnd, UINT Edge); 78 VOID FASTCALL IntSetSnapEdge(PWND Wnd, UINT Edge); 79 VOID FASTCALL IntSetSnapInfo(PWND Wnd, UINT Edge, IN const RECT *Pos OPTIONAL); 82 co_IntUnsnapWindow(PWND Wnd) in co_IntUnsnapWindow() argument 84 co_IntSnapWindow(Wnd, HTNOWHERE); in co_IntUnsnapWindow() 88 IntIsWindowSnapped(PWND Wnd) in IntIsWindowSnapped() argument 94 IntIsSnapAllowedForWindow(PWND Wnd) in IntIsSnapAllowedForWindow() argument 98 const UINT style = Wnd->style; in IntIsSnapAllowedForWindow() [all …]
|
H A D | nonclient.c | 76 Style = Wnd->style; in NC_GetInsideRect() 77 ExStyle = Wnd->ExStyle; in NC_GetInsideRect() 80 rect->right = Wnd->rcWindow.right - Wnd->rcWindow.left; in NC_GetInsideRect() 81 rect->bottom = Wnd->rcWindow.bottom - Wnd->rcWindow.top; in NC_GetInsideRect() 158 ULONG Style = Wnd->style; in DefWndStartSizeMove() 161 rectWindow = Wnd->rcWindow; in DefWndStartSizeMove() 1332 if (UserHasWindowEdge(Wnd->style, Wnd->ExStyle)) in NC_HandleNCCalcSize() 1334 UserGetWindowBorders(Wnd->style, Wnd->ExStyle, &WindowBorders, FALSE); in NC_HandleNCCalcSize() 1337 else if ((Wnd->ExStyle & WS_EX_STATICEDGE) || (Wnd->style & WS_BORDER)) in NC_HandleNCCalcSize() 1425 if (!(Wnd->style & WS_MINIMIZED) && UserHasThickFrameStyle(Wnd->style, Wnd->ExStyle)) in NC_DoNCActive() [all …]
|
H A D | userfuncs.h | 75 HDC FASTCALL UserGetWindowDC(PWND Wnd); 126 BOOL FASTCALL UserPostMessage(HWND Wnd,UINT Msg, WPARAM wParam, LPARAM lParam); 135 PWND FASTCALL UserGetAncestor(PWND Wnd, UINT Type); 136 BOOL APIENTRY DefSetText(PWND Wnd, PCWSTR WindowText); 150 LRESULT NC_HandleNCActivate( PWND Wnd, WPARAM wParam, LPARAM lParam ); 154 void FASTCALL NC_GetInsideRect(PWND Wnd, RECT *rect); 155 LRESULT NC_HandleNCLButtonDown(PWND Wnd, WPARAM wParam, LPARAM lParam); 156 LRESULT NC_HandleNCLButtonDblClk(PWND Wnd, WPARAM wParam, LPARAM lParam);
|
H A D | scrollbar.c | 107 *lprect = Wnd->rcClient; in IntGetScrollBarRect() 109 RECTL_vOffsetRect(lprect, -Wnd->rcWindow.left, -Wnd->rcWindow.top); in IntGetScrollBarRect() 110 if (Wnd->ExStyle & WS_EX_LAYOUTRTL) in IntGetScrollBarRect() 111 mirror_rect(&Wnd->rcWindow, lprect); in IntGetScrollBarRect() 118 if (Wnd->style & WS_BORDER) in IntGetScrollBarRect() 123 else if (Wnd->style & WS_VSCROLL) in IntGetScrollBarRect() 141 if (Wnd->style & WS_BORDER) in IntGetScrollBarRect() 146 else if (Wnd->style & WS_HSCROLL) in IntGetScrollBarRect() 154 IntGetClientRect(Wnd, lprect); in IntGetScrollBarRect() 183 if(Wnd->style & SBS_VERT) in IntCalculateThumb() [all …]
|
H A D | callproc.c | 181 PWND Wnd; in NtUserGetCPD() local 185 if (!(Wnd = UserGetWindowObject(hWnd))) in NtUserGetCPD() 192 Result = UserGetCPD(Wnd, Flags, ProcIn); in NtUserGetCPD()
|
/reactos/win32ss/user/user32/controls/ |
H A D | scrollbar.c | 719 HideCaret(Wnd); in IntScrollHandleKbdEvent() 816 if (Wnd == GetFocus()) ShowCaret(Wnd); in IntScrollHandleScrollEvent() 838 WndOwner = (SB_CTL == SBType) ? GetParent(Wnd) : Wnd; in IntScrollHandleScrollEvent() 853 SetCapture(Wnd); in IntScrollHandleScrollEvent() 870 if (Wnd == GetFocus()) ShowCaret(Wnd); in IntScrollHandleScrollEvent() 889 Wnd, SBType, SPY_GetMsgName(Msg,Wnd), Pt.x, Pt.y, HitTest ); in IntScrollHandleScrollEvent() 1065 ReleaseDC(Wnd, Dc); in IntScrollHandleScrollEvent() 1124 MoveWindow(Wnd, in IntScrollCreateScrollBar() 1139 MoveWindow(Wnd, in IntScrollCreateScrollBar() 1253 if (! IsWindow(Wnd)) in ScrollBarWndProc_common() [all …]
|
/reactos/win32ss/user/user32/windows/ |
H A D | window.c | 630 PWND Wnd; in GetDesktopWindow() local 938 if (!Wnd) in GetAncestor() 1017 PWND Wnd; in GetLastActivePopup() local 1102 if (!Wnd) in GetWindow() 1249 if (!Wnd) in GetWindowModuleFileNameA() 1266 if (!Wnd) in GetWindowModuleFileNameW() 1304 PWND Wnd; in GetWindowTextA() local 1311 if (!Wnd) in GetWindowTextA() 1342 PWND Wnd; in GetWindowTextLengthA() local 1345 if (!Wnd) in GetWindowTextLengthA() [all …]
|
H A D | defwnd.c | 601 PWND Wnd; in User32DefWindowProc() local 659 if ((Wnd->style & WS_CHILD) && Wnd->spwndParent != NULL) in User32DefWindowProc() 683 PWND Wnd; in User32DefWindowProc() local 819 PWND Wnd; in RealDefWindowProcA() local 823 if ( !Wnd && in RealDefWindowProcA() 835 if ( Wnd && in RealDefWindowProcA() 865 if (Wnd != NULL && Wnd->strName.Length != 0) in RealDefWindowProcA() 1043 PWND Wnd; in RealDefWindowProcW() local 1047 if ( !Wnd && in RealDefWindowProcW() 1059 if ( Wnd && in RealDefWindowProcW() [all …]
|
H A D | winpos.c | 242 PWND Wnd; in ScreenToClient() local 244 Wnd = ValidateHwnd(hWnd); in ScreenToClient() 245 if (!Wnd) in ScreenToClient() 250 if (Wnd->ExStyle & WS_EX_LAYOUTRTL) in ScreenToClient() 253 lpPoint->x -= Wnd->rcClient.left; in ScreenToClient() 254 lpPoint->y -= Wnd->rcClient.top; in ScreenToClient() 265 PWND Wnd; in ClientToScreen() local 267 Wnd = ValidateHwnd(hWnd); in ClientToScreen() 268 if (!Wnd) in ClientToScreen() 273 if (Wnd->ExStyle & WS_EX_LAYOUTRTL) in ClientToScreen() [all …]
|
H A D | class.c | 807 PWND Wnd; in GetClassLongA() local 813 Wnd = ValidateHwnd(hWnd); in GetClassLongA() 814 if (!Wnd) in GetClassLongA() 863 PWND Wnd; in GetClassLongW() local 870 if (!Wnd) in GetClassLongW() 922 PWND Wnd; in GetClassLongPtrA() local 929 if (!Wnd) in GetClassLongPtrA() 961 PWND Wnd; in GetClassLongPtrW() local 968 if (!Wnd) in GetClassLongPtrW() 1059 PWND Wnd; in GetClassWord() local [all …]
|
H A D | message.c | 1905 PWND Wnd; in DispatchMessageA() local 1916 if (!Wnd) return 0; in DispatchMessageA() 1919 Wnd = NULL; in DispatchMessageA() 1953 else if (Wnd != NULL) in DispatchMessageA() 1993 PWND Wnd; in DispatchMessageW() local 2005 if (!Wnd) return 0; in DispatchMessageW() 2008 Wnd = NULL; in DispatchMessageW() 2042 else if (Wnd != NULL) in DispatchMessageW() 2367 SendMessageW(HWND Wnd, in SendMessageW() argument 2407 UMMsg.hwnd = Wnd; in SendMessageW() [all …]
|
H A D | menu.c | 304 pWnd = ValidateHwnd(Wnd); in PopupMenuWndProcW() 350 if (0 == GetWindowLongPtrW(Wnd, 0)) in PopupMenuWndProcW() 362 return DefWindowProcW(Wnd, Message, wParam, lParam); in PopupMenuWndProcW() 372 pWnd = ValidateHwnd(Wnd); in PopupMenuWndProcA() 375 return DefWindowProcA(Wnd, Message, wParam, lParam); in PopupMenuWndProcA() 397 return DefWindowProcA(Wnd, Message, wParam, lParam); in PopupMenuWndProcA() 869 PWND Wnd = ValidateHwnd(hWnd); in GetMenu() local 871 if (!Wnd) in GetMenu() 874 return UlongToHandle(Wnd->IDMenu); in GetMenu() 1650 HWND Wnd, in TrackPopupMenu() argument [all …]
|
/reactos/modules/rostests/tests/statst/ |
H A D | statst.c | 16 HWND Wnd) in WmCreate() argument 23 10, 10, 100, 20, Wnd, NULL, AppInstance, NULL); in WmCreate() 27 10, 40, 100, 20, Wnd, NULL, AppInstance, NULL); in WmCreate() 31 10, 70, 100, 20, Wnd, NULL, AppInstance, NULL); in WmCreate() 35 10, 100, 100, 20, Wnd, NULL, AppInstance, NULL); in WmCreate() 41 10, 130, 100, 50, Wnd, NULL, AppInstance, NULL); in WmCreate() 47 10, 185, 100, 50, Wnd, NULL, AppInstance, NULL); in WmCreate() 53 10, 240, 100, 50, Wnd, NULL, AppInstance, NULL); in WmCreate() 59 10, 295, 100, 20, Wnd, NULL, AppInstance, NULL); in WmCreate() 95 HWND Wnd, in TestWndProc() argument [all …]
|
/reactos/modules/rostests/tests/button/ |
H A D | buttontst.c | 16 HWND Wnd) in WmCreate() argument 21 10, 10, 150, 30, Wnd, NULL, AppInstance, NULL); in WmCreate() 24 10, 40, 150, 30, Wnd, NULL, AppInstance, NULL); in WmCreate() 27 10, 70, 150, 30, Wnd, NULL, AppInstance, NULL); in WmCreate() 30 10, 100, 150, 30, Wnd, NULL, AppInstance, NULL); in WmCreate() 37 HWND Wnd, in TestWndProc() argument 44 return WmCreate(Wnd); in TestWndProc() 49 return DefWindowProc(Wnd, Msg, wParam, lParam); in TestWndProc()
|
/reactos/win32ss/user/user32/misc/ |
H A D | misc.c | 166 TestWindowProcess(PWND Wnd) in TestWindowProcess() argument 168 if (Wnd->head.pti == (PTHREADINFO)NtCurrentTeb()->Win32ThreadInfo) in TestWindowProcess() 171 return (NtUserQueryWindow(Wnd->head.h, QUERY_WINDOW_UNIQUE_PROCESS_ID) == in TestWindowProcess() 378 PWND Wnd; in ValidateHwndNoErr() local 386 Wnd = ValidateHandleNoErr((HANDLE)hwnd, TYPE_WINDOW); in ValidateHwndNoErr() 387 if (Wnd != NULL) in ValidateHwndNoErr() 389 return Wnd; in ValidateHwndNoErr() 399 PWND Wnd = GetThreadDesktopInfo()->spwnd; in GetThreadDesktopWnd() local 400 if (Wnd != NULL) in GetThreadDesktopWnd() 401 Wnd = DesktopPtrToUser(Wnd); in GetThreadDesktopWnd() [all …]
|
/reactos/modules/rosapps/applications/sysutils/utils/rosperf/ |
H A D | rosperf.c | 87 InvalidateRect(PerfInfo->Wnd, NULL, TRUE); in ClearWindow() 88 UpdateWindow(PerfInfo->Wnd); in ClearWindow() 573 Dc = BeginPaint(Wnd, &Ps); in MainWndProc() 574 EndPaint (Wnd, &Ps); in MainWndProc() 600 Dc = GetDC(Wnd); in LabelWndProc() 601 if (NULL != Dc && GetClientRect(Wnd, &ClientRect) && GetWindowRect(Wnd, &WindowRect) in LabelWndProc() 613 ReleaseDC(Wnd, Dc); in LabelWndProc() 619 Dc = BeginPaint(Wnd, &Ps); in LabelWndProc() 622 EndPaint (Wnd, &Ps); in LabelWndProc() 884 if (NULL == PerfInfo.Wnd) in wWinMain() [all …]
|
H A D | text.c | 39 InvalidateRect(PerfInfo->Wnd, NULL, TRUE); in TextProc() 40 UpdateWindow(PerfInfo->Wnd); in TextProc()
|
/reactos/modules/rostests/dibtests/dibtest/ |
H A D | dibtest.c | 144 LRESULT CALLBACK MainWndProc(HWND Wnd, UINT msg, WPARAM wParam, LPARAM lParam) in MainWndProc() argument 152 WindowDC = BeginPaint(Wnd, &ps); in MainWndProc() 184 EndPaint(Wnd, &ps); in MainWndProc() 192 return DefWindowProc(Wnd, msg, wParam, lParam); in MainWndProc()
|