ReactOS 0.4.16-dev-732-g2d1144a
defwnd.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Win32k subsystem
3 * LICENSE: See COPYING in the top level directory
4 * PURPOSE: Miscellaneous User functions
5 * COPYRIGHT: 2008-2020 James Tabor <james.tabor@reactos.org>
6 */
7
8#include <win32k.h>
9#include <windowsx.h>
10
12
15
17{
19
20 memset (&dtp, 0, sizeof(dtp));
21 dtp.cbSize = sizeof(dtp);
22 if (flags & DT_TABSTOP)
23 {
24 dtp.iTabLength = (flags >> 8) & 0xff;
25 flags &= 0xffff00ff;
26 }
27 return DrawTextExWorker(hdc, (LPWSTR)str, count, rect, flags, &dtp);
28}
29
30
31HBRUSH FASTCALL
33{
34 if (ctlType == CTLCOLOR_SCROLLBAR)
35 {
40
41 /* if COLOR_WINDOW happens to be the same as COLOR_3DHILIGHT
42 * we better use 0x55aa bitmap brush to make scrollbar's background
43 * look different from the window background.
44 */
45 if ( bk == IntGetSysColor(COLOR_WINDOW))
46 return gpsi->hbrGray;
47
49 return hb;
50 }
51
53
54 if ((ctlType == CTLCOLOR_EDIT) || (ctlType == CTLCOLOR_LISTBOX))
55 {
57 }
58 else
59 {
62 }
63
65}
66
69{
70 POINT maxTrack, minTrack;
71 LONG style = pWnd->style;
72
73 if (Pos->flags & SWP_NOSIZE) return 0;
74 if ((style & WS_THICKFRAME) || ((style & (WS_POPUP | WS_CHILD)) == 0))
75 {
76 co_WinPosGetMinMaxInfo(pWnd, NULL, NULL, &minTrack, &maxTrack);
77 Pos->cx = min(Pos->cx, maxTrack.x);
78 Pos->cy = min(Pos->cy, maxTrack.y);
79 if (!(style & WS_MINIMIZE))
80 {
81 if (Pos->cx < minTrack.x) Pos->cx = minTrack.x;
82 if (Pos->cy < minTrack.y) Pos->cy = minTrack.y;
83 }
84 }
85 else
86 {
87 Pos->cx = max(Pos->cx, 0);
88 Pos->cy = max(Pos->cy, 0);
89 }
90 return 0;
91}
92
93/* Win: xxxHandleWindowPosChanged */
96{
97 RECT Rect;
98 LONG style = pWnd->style;
99
100 IntGetClientRect(pWnd, &Rect);
101 IntMapWindowPoints(pWnd, (style & WS_CHILD ? IntGetParent(pWnd) : NULL), (LPPOINT) &Rect, 2);
102
103 if (!(Pos->flags & SWP_NOCLIENTMOVE))
104 {
106 }
107
108 if (!(Pos->flags & SWP_NOCLIENTSIZE) || (Pos->flags & SWP_STATECHANGED))
109 {
111 else
112 {
114 co_IntSendMessage(UserHMGetHandle(pWnd), WM_SIZE, wp, MAKELONG(Rect.right - Rect.left, Rect.bottom - Rect.top));
115 }
116 }
117 return 0;
118}
119
120//
121// Handle a WM_SYSCOMMAND message. Called from DefWindowProc().
122//
123// Win: xxxSysCommand
126{
127 LRESULT lResult = 0;
128 BOOL Hook = FALSE;
129
130 if (ISITHOOKED(WH_CBT) || (pWnd->head.rpdesk->pDeskInfo->fsHooks & HOOKID_TO_FLAG(WH_CBT)))
131 {
132 Hook = TRUE;
134
135 if (lResult) return lResult;
136 }
137
138 switch (wParam & 0xfff0)
139 {
140 case SC_MOVE:
141 case SC_SIZE:
143 break;
144
145 case SC_MINIMIZE:
147 IntShowOwnedPopups(pWnd,FALSE); // This is done in ShowWindow! Need to retest!
149 break;
150
151 case SC_MAXIMIZE:
152 if (((pWnd->style & WS_MINIMIZE) != 0) && UserHMGetHandle(pWnd) == UserGetActiveWindow())
155 break;
156
157 case SC_RESTORE:
158 if (((pWnd->style & WS_MINIMIZE) != 0) && UserHMGetHandle(pWnd) == UserGetActiveWindow())
161 break;
162
163 case SC_CLOSE:
164 return co_IntSendMessage(UserHMGetHandle(pWnd), WM_CLOSE, 0, 0);
165
166 case SC_SCREENSAVE:
167 ERR("Screensaver Called!\n");
168 UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_START_SCREENSAVE, 0); // always lParam 0 == not Secure
169 break;
170
171 case SC_HOTKEY:
172 {
174
176 if (pWnd)
177 {
178 if (pWnd->spwndLastActive)
179 {
180 pWnd = pWnd->spwndLastActive;
181 }
182 UserRefObjectCo(pWnd, &Ref);
184 UserDerefObjectCo(pWnd);
185 if (pWnd->style & WS_MINIMIZE)
186 {
188 }
189 }
190 }
191 break;
192
193// case SC_DEFAULT:
194 case SC_MOUSEMENU:
195 {
196 POINT Pt;
197 Pt.x = (short)LOWORD(lParam);
198 Pt.y = (short)HIWORD(lParam);
199 MENU_TrackMouseMenuBar(pWnd, wParam & 0x000f, Pt);
200 }
201 break;
202
203 case SC_KEYMENU:
205 break;
206
207 default:
208 // We do not support anything else here so we should return normal even when sending a hook.
209 return 0;
210 }
211
212 return(Hook ? 1 : 0); // Don't call us again from user space.
213}
214
217{
218 PWND Ret;
219 PWND Child, OwnerWnd;
220
221 for(Child = Root->spwndChild; Child; Child = Child->spwndNext)
222 {
223 OwnerWnd = Child->spwndOwner;
224 if(!OwnerWnd)
225 continue;
226
227 if (!(Child->style & WS_POPUP) ||
228 !(Child->style & WS_VISIBLE) ||
229 /* Fixes CMD pop up properties window from having foreground. */
230 Owner->head.pti->MessageQueue != Child->head.pti->MessageQueue)
231 continue;
232
233 if(OwnerWnd == Owner)
234 {
235 Ret = Child;
236 return Ret;
237 }
238 }
239 return NULL;
240}
241
244{
245 PWND pwndPopUP = NULL;
247
248 /* Not for child windows. */
249 if (UserHMGetHandle(pWnd) != (HWND)wParam)
250 {
251 return FALSE;
252 }
253
254 switch((short)LOWORD(lParam))
255 {
256 case HTERROR:
257 {
260
261 if (Msg == WM_LBUTTONDOWN)
262 {
263 // Find a pop up window to bring active.
265 if (pwndPopUP)
266 {
267 // Not a child pop up from desktop.
268 if ( pwndPopUP != UserGetDesktopWindow()->spwndChild )
269 {
270 // Get original active window.
271 PWND pwndOrigActive = gpqForeground->spwndActive;
272
274
275 UserRefObjectCo(pwndPopUP, &Ref);
276 //UserSetActiveWindow(pwndPopUP);
277 co_IntSetForegroundWindow(pwndPopUP); // HACK
278 UserDerefObjectCo(pwndPopUP);
279
280 // If the change was made, break out.
281 if (pwndOrigActive != gpqForeground->spwndActive)
282 break;
283 }
284 }
285 }
287 if (Msg == WM_LBUTTONDOWN || Msg == WM_MBUTTONDOWN ||
288 Msg == WM_RBUTTONDOWN || Msg == WM_XBUTTONDOWN)
289 {
290 if (pwndPopUP)
291 {
292 FLASHWINFO fwi =
293 {sizeof(FLASHWINFO),
294 UserHMGetHandle(pwndPopUP),
295 FLASHW_ALL,
297 (gpsi->dtCaretBlink >> 3)};
298
299 // Now shake that window!
300 IntFlashWindowEx(pwndPopUP, &fwi);
301 }
303 }
304 break;
305 }
306
307 case HTCLIENT:
308 {
309 if (pWnd->pcls->spcur)
310 {
312 }
313 return FALSE;
314 }
315
316 case HTLEFT:
317 case HTRIGHT:
318 {
319 if (pWnd->style & WS_MAXIMIZE)
320 {
321 break;
322 }
324 return TRUE;
325 }
326
327 case HTTOP:
328 case HTBOTTOM:
329 {
330 if (pWnd->style & WS_MAXIMIZE)
331 {
332 break;
333 }
335 return TRUE;
336 }
337
338 case HTTOPLEFT:
339 case HTBOTTOMRIGHT:
340 {
341 if (pWnd->style & WS_MAXIMIZE)
342 {
343 break;
344 }
345 IntSystemSetCursor(SYSTEMCUR(SIZENWSE));
346 return TRUE;
347 }
348
349 case HTBOTTOMLEFT:
350 case HTTOPRIGHT:
351 {
352 if (pWnd->style & WS_MAXIMIZE)
353 {
354 break;
355 }
356 IntSystemSetCursor(SYSTEMCUR(SIZENESW));
357 return TRUE;
358 }
359 }
361 return FALSE;
362}
363
364/* Win: xxxDWPPrint */
366{
367 /*
368 * Visibility flag.
369 */
370 if ( (uFlags & PRF_CHECKVISIBLE) &&
371 !IntIsWindowVisible(pwnd) )
372 return;
373
374 /*
375 * Unimplemented flags.
376 */
377 if ( (uFlags & PRF_CHILDREN) ||
378 (uFlags & PRF_OWNED) ||
380 {
381 FIXME("WM_PRINT message with unsupported flags\n");
382 }
383
384 /*
385 * Background
386 */
387 if ( uFlags & PRF_ERASEBKGND)
389
390 /*
391 * Client area
392 */
393 if ( uFlags & PRF_CLIENT)
395}
396
397BOOL
399{
400 BOOL Ret = FALSE;
401
402 if ( (pWnd->style & WS_VISIBLE) && ((pWnd->style & WS_CAPTION) == WS_CAPTION) )
403 {
404 if (pWnd->state & WNDS_HASCAPTION && pWnd->head.pti->MessageQueue == gpqForeground)
405 Flags |= DC_ACTIVE;
406 /*
407 * When themes are not enabled we can go on and paint the non client area.
408 * However if we do that with themes enabled we will draw a classic frame.
409 * This is solved by sending a themes specific message to notify the themes
410 * engine that the caption needs to be redrawn.
411 */
413 {
414 /*
415 * This will cause uxtheme to either paint the themed caption or call
416 * RealUserDrawCaption in order to draw the classic caption when themes
417 * are disabled but the themes service is enabled.
418 */
419 TRACE("UDCB Flags %08x\n", Flags);
421 }
422 else
423 {
425 UserDrawCaptionBar(pWnd, hDC, Flags | DC_FRAME); // DCFRAME added as fix for CORE-10855.
426 UserReleaseDC(pWnd, hDC, FALSE);
427 }
428 Ret = TRUE;
429 }
430 // Support window tray
431 return Ret;
432}
433
434// WM_SETICON
435/* Win: xxxDWP_SetIcon */
438{
439 HICON hIcon, hIconSmall, hIconOld;
440
441 if ( wParam > ICON_SMALL2 )
442 {
444 return 0;
445 }
446 hIconSmall = UserGetProp(pWnd, gpsi->atomIconSmProp, TRUE);
448
449 hIconOld = wParam == ICON_BIG ? hIcon : hIconSmall;
450
451 switch(wParam)
452 {
453 case ICON_BIG:
454 hIcon = (HICON)lParam;
455 break;
456 case ICON_SMALL:
457 hIconSmall = (HICON)lParam;
458 break;
459 case ICON_SMALL2:
460 ERR("FIXME: Set ICON_SMALL2 support!\n");
461 default:
462 break;
463 }
464
465 UserSetProp(pWnd, gpsi->atomIconProp, hIcon, TRUE);
466 UserSetProp(pWnd, gpsi->atomIconSmProp, hIconSmall, TRUE);
467
468 if ((pWnd->style & WS_CAPTION ) == WS_CAPTION)
470
471 return (LRESULT)hIconOld;
472}
473
474/* Win: DWP_GetIcon */
477{
478 HICON hIconRet;
479 if ( wParam > ICON_SMALL2 )
480 {
482 return 0;
483 }
484 switch(wParam)
485 {
486 case ICON_BIG:
487 hIconRet = UserGetProp(pWnd, gpsi->atomIconProp, TRUE);
488 break;
489 case ICON_SMALL:
490 case ICON_SMALL2:
491 hIconRet = UserGetProp(pWnd, gpsi->atomIconSmProp, TRUE);
492 break;
494 }
495 return (LRESULT)hIconRet;
496}
497
500{
501 PWND pwndNode1;
502 PTHREADINFO pti = pWnd->head.pti, ptiNode;
503 BOOL bFoundNullNode = FALSE;
504
505 for (pwndNode1 = pWnd->spwndNext; pwndNode1 != pWnd; )
506 {
507 if (!pwndNode1) /* NULL detected? */
508 {
509 if (bFoundNullNode)
510 return NULL;
511 bFoundNullNode = TRUE;
512 /* Retry with parent's first child (once only) */
513 pwndNode1 = pWnd->spwndParent->spwndChild;
514 continue;
515 }
516
517 /*
518 * 1. We want to detect the window that owns the same input target of pWnd.
519 * 2. For non-16-bit apps, we need to check the two threads' input queues to
520 * see whether they are the same, while for 16-bit apps it's sufficient to
521 * only check the thread info pointers themselves (ptiNode and pti).
522 * See also:
523 * https://devblogs.microsoft.com/oldnewthing/20060221-09/?p=32203
524 * https://github.com/reactos/reactos/pull/7700#discussion_r1939435931
525 */
526 ptiNode = pwndNode1->head.pti;
527 if ((!(pti->TIF_flags & TIF_16BIT) && ptiNode->MessageQueue == pti->MessageQueue) ||
528 ((pti->TIF_flags & TIF_16BIT) && ptiNode == pti))
529 {
530 DWORD style = pwndNode1->style;
531 if ((style & WS_VISIBLE) && !(style & WS_DISABLED)) /* Visible and enabled? */
532 {
533 /* Does pwndNode1 have a pWnd as an ancestor? */
534 PWND pwndNode2;
535 for (pwndNode2 = pwndNode1->spwndOwner; pwndNode2;
536 pwndNode2 = pwndNode2->spwndOwner)
537 {
538 if (pwndNode2 == pWnd)
539 return pwndNode1;
540 }
541 }
542 }
543
544 pwndNode1 = pwndNode1->spwndNext;
545 }
546
547 return NULL;
548}
549
552{
553 RECT rect;
554 HDC hdc;
555 INT w;
556 INT h;
558 HDC hdc2;
559 SETCLIPBDATA scd = {FALSE, FALSE};
560
563
564 hdc = UserGetWindowDC(pWnd);
565 IntGetWindowRect(pWnd, &rect);
566 w = rect.right - rect.left;
567 h = rect.bottom - rect.top;
568
572
573 NtGdiBitBlt(hdc2, 0, 0, w, h, hdc, 0, 0, SRCCOPY, 0, 0);
574
576
577 UserReleaseDC(pWnd, hdc, FALSE);
578 UserReleaseDC(pWnd, hdc2, FALSE);
579
581}
582
583/*
584 Win32k counterpart of User DefWindowProc
585 */
588 PWND Wnd,
589 UINT Msg,
592 BOOL Ansi)
593{
595 LRESULT lResult = 0;
597
598 if (Msg > WM_USER) return 0;
599
600 switch (Msg)
601 {
602 case WM_DEVICECHANGE:
603 return TRUE;
604
605 case WM_GETTEXTLENGTH:
606 {
607 PWSTR buf;
608 ULONG len;
609
610 if (Wnd != NULL && Wnd->strName.Length != 0)
611 {
612 buf = Wnd->strName.Buffer;
613 if (buf != NULL &&
615 buf,
616 Wnd->strName.Length)))
617 {
618 lResult = (LRESULT) (Wnd->strName.Length / sizeof(WCHAR));
619 }
620 }
621
622 break;
623 }
624
625 case WM_GETTEXT: // FIXME: Handle Ansi
626 {
627 PWSTR buf = NULL;
628 PWSTR outbuf = (PWSTR)lParam;
629
630 if (Wnd != NULL && wParam != 0)
631 {
632 if (Wnd->strName.Buffer != NULL)
633 buf = Wnd->strName.Buffer;
634 else
635 outbuf[0] = L'\0';
636
637 if (buf != NULL)
638 {
639 if (Wnd->strName.Length != 0)
640 {
641 lResult = min(Wnd->strName.Length / sizeof(WCHAR), wParam - 1);
642 RtlCopyMemory(outbuf,
643 buf,
644 lResult * sizeof(WCHAR));
645 outbuf[lResult] = L'\0';
646 }
647 else
648 outbuf[0] = L'\0';
649 }
650 }
651 break;
652 }
653
654 case WM_SETTEXT: // FIXME: Handle Ansi
655 {
656 DefSetText(Wnd, (PCWSTR)lParam);
657
658 if ((Wnd->style & WS_CAPTION) == WS_CAPTION)
660 IntNotifyWinEvent(EVENT_OBJECT_NAMECHANGE, Wnd, OBJID_WINDOW, CHILDID_SELF, 0);
661 lResult = 1;
662 break;
663 }
664
665 case WM_SYSCOMMAND:
666 {
667 TRACE("hwnd %p WM_SYSCOMMAND %lx %lx\n", UserHMGetHandle(Wnd), wParam, lParam );
668 lResult = DefWndHandleSysCommand(Wnd, wParam, lParam);
669 break;
670 }
671
672 case WM_SHOWWINDOW:
673 {
674 if ((Wnd->style & WS_VISIBLE) && wParam) break;
675 if (!(Wnd->style & WS_VISIBLE) && !wParam) break;
676 if (!Wnd->spwndOwner) break;
677 if (LOWORD(lParam))
678 {
680 }
681 break;
682 }
683
685 return IntClientShutdown(Wnd, wParam, lParam);
686
687 case WM_APPCOMMAND:
688 if ( (Wnd->style & (WS_POPUP|WS_CHILD)) != WS_CHILD &&
689 Wnd != co_GetDesktopWindow(Wnd) )
690 {
691 if (!co_HOOK_CallHooks(WH_SHELL, HSHELL_APPCOMMAND, wParam, lParam))
692 co_IntShellHookNotify(HSHELL_APPCOMMAND, wParam, lParam);
693 break;
694 }
695 UserRefObjectCo(Wnd->spwndParent, &Ref);
698 break;
699
700 case WM_KEYF1:
701 {
702 HELPINFO hi;
703 HMENU hMenu = UlongToHandle(Wnd->IDMenu);
704 PWND pwndActive = MENU_IsMenuActive();
705 hi.cbSize = sizeof(HELPINFO);
706 hi.MousePos = gpsi->ptCursor;
708 hi.hItemHandle = pwndActive ? UserHMGetHandle(pwndActive) : UserHMGetHandle(Wnd);
709 hi.iCtrlId = (Wnd->style & (WS_POPUP|WS_CHILD)) == WS_CHILD ? IntMenuItemFromPoint(Wnd, hMenu, hi.MousePos) : 0;
711
712 co_IntSendMessage( UserHMGetHandle(Wnd), WM_HELP, 0, (LPARAM)&hi );
713 break;
714 }
715
716 case WM_SETICON:
717 {
718 return DefWndSetIcon(Wnd, wParam, lParam);
719 }
720
721 case WM_GETICON:
722 {
723 return DefWndGetIcon(Wnd, wParam, lParam);
724 }
725
726 case WM_HELP:
727 {
728 PWND Parent = IntGetParent(Wnd);
730 break;
731 }
732
733 case WM_LBUTTONDOWN:
734 case WM_RBUTTONDOWN:
735 case WM_MBUTTONDOWN:
737 break;
738
739 case WM_NCLBUTTONDOWN:
741
742 case WM_NCRBUTTONDOWN:
744
745 case WM_LBUTTONDBLCLK:
747
750
751 case WM_RBUTTONUP:
752 {
753 POINT Pt;
754
755 Pt.x = GET_X_LPARAM(lParam);
756 Pt.y = GET_Y_LPARAM(lParam);
757 IntClientToScreen(Wnd, &Pt);
758 lParam = MAKELPARAM(Pt.x, Pt.y);
760 break;
761 }
762
763 case WM_NCRBUTTONUP:
764 /*
765 * FIXME : we must NOT send WM_CONTEXTMENU on a WM_NCRBUTTONUP (checked
766 * in Windows), but what _should_ we do? According to MSDN :
767 * "If it is appropriate to do so, the system sends the WM_SYSCOMMAND
768 * message to the window". When is it appropriate?
769 */
770 ERR("WM_NCRBUTTONUP\n");
771 break;
772
773 case WM_XBUTTONUP:
774 case WM_NCXBUTTONUP:
775 if (HIWORD(wParam) == XBUTTON1 || HIWORD(wParam) == XBUTTON2)
776 {
778 MAKELPARAM(LOWORD(wParam), FAPPCOMMAND_MOUSE | HIWORD(wParam)));
779 }
780 break;
781
782
783 case WM_CONTEXTMENU:
784 {
785 if (Wnd->style & WS_CHILD)
786 {
788 }
789 else
790 {
791 POINT Pt;
793 LONG HitCode;
794
795 Style = Wnd->style;
796
797 Pt.x = GET_X_LPARAM(lParam);
798 Pt.y = GET_Y_LPARAM(lParam);
799 if (Style & WS_CHILD)
800 {
802 }
803
804 HitCode = GetNCHitEx(Wnd, Pt);
805
806 if (HitCode == HTCAPTION || HitCode == HTSYSMENU)
807 {
808 PMENU SystemMenu;
809 UINT Flags;
810
811 if((SystemMenu = IntGetSystemMenu(Wnd, FALSE)))
812 {
813 MENU_InitSysMenuPopup(SystemMenu, Wnd->style, Wnd->pcls->style, HitCode);
814
815 if(HitCode == HTCAPTION)
817 else
819
820 IntTrackPopupMenuEx(SystemMenu, Flags|TPM_SYSTEM_MENU, Pt.x, Pt.y, Wnd, NULL);
821 }
822 }
823 if (HitCode == HTHSCROLL || HitCode == HTVSCROLL)
824 {
825 WARN("Scroll Menu Not Supported\n");
826 }
827 }
828 break;
829 }
830
831 case WM_KEYDOWN:
832 if (wParam == VK_F10)
833 {
834 pti->MessageQueue->QF_flags |= QF_FF10STATUS;
835
836 if (UserGetKeyState(VK_SHIFT) & 0x8000)
837 {
839 }
840 }
842 {
843 HWND hwndTop = UserGetForegroundWindow();
844 PWND topWnd = UserGetWindowObject(hwndTop);
845 BOOL allowSnap;
846
847 // MS Doc: foreground window can be NULL, e.g. when window is losing activation
848 if (!topWnd)
849 return 0;
850
851 allowSnap = IntIsSnapAllowedForWindow(topWnd);
852 /* Allow the minimize action if it has a minimize button, even if the window cannot be snapped (e.g. Calc.exe) */
853 if (!allowSnap && (topWnd->style & (WS_MINIMIZEBOX|WS_THICKFRAME)) == WS_MINIMIZEBOX)
854 allowSnap = wParam == VK_DOWN;
855
856 if (allowSnap)
857 {
858 UINT snapped = IntGetWindowSnapEdge(topWnd);
859
860 if (wParam == VK_DOWN)
861 {
862 if (topWnd->style & WS_MAXIMIZE)
864 else if (snapped)
865 co_IntUnsnapWindow(topWnd);
866 else
868 }
869 else if (wParam == VK_UP)
870 {
871 if (topWnd->style & WS_MINIMIZE)
873 else
875 }
876 else if (wParam == VK_LEFT || wParam == VK_RIGHT)
877 {
878 UINT edge = wParam == VK_LEFT ? HTLEFT : HTRIGHT;
879 UINT otherEdge = edge == HTLEFT ? HTRIGHT : HTLEFT;
880
881 if (topWnd->style & WS_MAXIMIZE)
882 {
883 /* SC_RESTORE + Snap causes the window to visually move twice, place it manually in the snap position */
884 RECT normalRect = topWnd->InternalPos.NormalRect;
885 co_IntCalculateSnapPosition(topWnd, edge, &topWnd->InternalPos.NormalRect); /* Calculate edge position */
886 IntSetSnapEdge(topWnd, edge); /* Tell everyone the edge we are snapped to */
888 IntSetSnapInfo(topWnd, edge, &normalRect); /* Reset the real place to unsnap to */
889 snapped = HTNOWHERE; /* Force snap */
890 }
891#if 0 /* Windows 8 does this but is it a good feature? */
892 else if (snapped == edge)
893 {
894 /* Already snapped to this edge, snap to the opposite side */
895 edge = otherEdge;
896 }
897#endif
898
899 if (snapped == otherEdge)
900 co_IntUnsnapWindow(topWnd);
901 else
902 co_IntSnapWindow(topWnd, edge);
903 }
904 }
905 }
906 break;
907
908 case WM_SYSKEYDOWN:
909 {
910 if (HIWORD(lParam) & KF_ALTDOWN)
911 { /* Previous state, if the key was down before this message,
912 this is a cheap way to ignore autorepeat keys. */
913 if ( !(HIWORD(lParam) & KF_REPEAT) )
914 {
915 if ( ( wParam == VK_MENU ||
916 wParam == VK_LMENU ||
917 wParam == VK_RMENU ) && !(pti->MessageQueue->QF_flags & QF_FMENUSTATUS)) //iMenuSysKey )
918 pti->MessageQueue->QF_flags |= QF_FMENUSTATUS; //iMenuSysKey = 1;
919 else
920 pti->MessageQueue->QF_flags &= ~QF_FMENUSTATUS; //iMenuSysKey = 0;
921 }
922
923 pti->MessageQueue->QF_flags &= ~QF_FF10STATUS; //iF10Key = 0;
924
925 if (wParam == VK_F4) /* Try to close the window */
926 {
928 if (!(top->pcls->style & CS_NOCLOSE))
930 }
931 else if (wParam == VK_SNAPSHOT) // Alt-VK_SNAPSHOT?
932 {
933 PWND pwnd = Wnd;
934 while (IntGetParent(pwnd) != NULL)
935 {
936 pwnd = IntGetParent(pwnd);
937 }
938 ERR("DefWndScreenshot\n");
939 DefWndScreenshot(pwnd);
940 }
941 else if ( wParam == VK_ESCAPE || wParam == VK_TAB ) // Alt-Tab/ESC Alt-Shift-Tab/ESC
942 {
943 WPARAM wParamTmp;
944 HWND Active = UserGetActiveWindow(); // Noticed MDI problem.
945 if (!Active)
946 {
947 FIXME("WM_SYSKEYDOWN VK_ESCAPE no active\n");
948 break;
949 }
950 wParamTmp = UserGetKeyState(VK_SHIFT) & 0x8000 ? SC_PREVWINDOW : SC_NEXTWINDOW;
952 }
953 }
954 else if( wParam == VK_F10 )
955 {
956 if (UserGetKeyState(VK_SHIFT) & 0x8000)
958 pti->MessageQueue->QF_flags |= QF_FF10STATUS; //iF10Key = 1;
959 }
960 else if( wParam == VK_ESCAPE && (UserGetKeyState(VK_SHIFT) & 0x8000))
962 break;
963 }
964
965 case WM_KEYUP:
966 case WM_SYSKEYUP:
967 {
968 /* Press and release F10 or ALT */
969 if (((wParam == VK_MENU || wParam == VK_LMENU || wParam == VK_RMENU)
970 && (pti->MessageQueue->QF_flags & (QF_FMENUSTATUS|QF_FMENUSTATUSBREAK)) == QF_FMENUSTATUS /*iMenuSysKey*/) ||
971 ((wParam == VK_F10) && pti->MessageQueue->QF_flags & QF_FF10STATUS /*iF10Key*/))
973 pti->MessageQueue->QF_flags &= ~(QF_FMENUSTATUS|QF_FMENUSTATUSBREAK|QF_FF10STATUS); //iMenuSysKey = iF10Key = 0;
974 break;
975 }
976
977 case WM_SYSCHAR:
978 {
979 pti->MessageQueue->QF_flags &= ~(QF_FMENUSTATUS|QF_FMENUSTATUSBREAK); //iMenuSysKey = 0;
980 if (wParam == VK_RETURN && (Wnd->style & WS_MINIMIZE) != 0)
981 {
983 break;
984 }
985 if ((HIWORD(lParam) & KF_ALTDOWN) && wParam)
986 {
987 if (wParam == VK_TAB || wParam == VK_ESCAPE) break;
988 if (wParam == VK_SPACE && Wnd->style & WS_CHILD)
990 else
992 }
993 else /* check for Ctrl-Esc */
995 break;
996 }
997
998 case WM_CANCELMODE:
999 {
1000 pti->MessageQueue->QF_flags &= ~(QF_FMENUSTATUS|QF_FMENUSTATUSBREAK);
1001
1002 MENU_EndMenu( Wnd );
1004 {
1006 }
1007 break;
1008 }
1009
1010 case WM_CLOSE:
1012 break;
1013
1014 case WM_CTLCOLORMSGBOX:
1015 case WM_CTLCOLOREDIT:
1016 case WM_CTLCOLORLISTBOX:
1017 case WM_CTLCOLORBTN:
1018 case WM_CTLCOLORDLG:
1019 case WM_CTLCOLORSTATIC:
1022
1023 case WM_CTLCOLOR:
1025
1026 case WM_SETCURSOR:
1027 {
1028 if (Wnd->style & WS_CHILD)
1029 {
1030 /* with the exception of the border around a resizable wnd,
1031 * give the parent first chance to set the cursor */
1033 {
1034 PWND parent = Wnd->spwndParent;//IntGetParent( Wnd );
1035 if (parent != UserGetDesktopWindow() &&
1037 return TRUE;
1038 }
1039 }
1040 return DefWndHandleSetCursor(Wnd, wParam, lParam);
1041 }
1042
1043 case WM_MOUSEACTIVATE:
1044 if (Wnd->style & WS_CHILD)
1045 {
1047 PWND pwndParent = IntGetParent(Wnd);
1048 hwndParent = pwndParent ? UserHMGetHandle(pwndParent) : NULL;
1049 if (hwndParent)
1050 {
1052 if (lResult)
1053 break;
1054 }
1055 }
1057
1058 case WM_ACTIVATE:
1059 /* The default action in Windows is to set the keyboard focus to
1060 * the window, if it's being activated and not minimized */
1061 if (LOWORD(wParam) != WA_INACTIVE &&
1062 !(Wnd->style & WS_MINIMIZE))
1063 {
1064 //ERR("WM_ACTIVATE %p\n",hWnd);
1065 co_UserSetFocus(Wnd);
1066 }
1067 break;
1068
1069 case WM_MOUSEWHEEL:
1070 if (Wnd->style & WS_CHILD)
1071 {
1073 PWND pwndParent = IntGetParent(Wnd);
1074 hwndParent = pwndParent ? UserHMGetHandle(pwndParent) : NULL;
1076 }
1077 break;
1078
1079 case WM_ERASEBKGND:
1080 case WM_ICONERASEBKGND:
1081 {
1082 RECT Rect;
1083 HBRUSH hBrush = Wnd->pcls->hbrBackground;
1084 if (!hBrush) return 0;
1085 if (hBrush <= (HBRUSH)COLOR_MENUBAR)
1086 {
1087 hBrush = IntGetSysColorBrush(HandleToUlong(hBrush));
1088 }
1089 if (Wnd->pcls->style & CS_PARENTDC)
1090 {
1091 /* can't use GetClipBox with a parent DC or we fill the whole parent */
1092 IntGetClientRect(Wnd, &Rect);
1094 }
1095 else
1096 {
1097 GdiGetClipBox((HDC)wParam, &Rect);
1098 }
1099 FillRect((HDC)wParam, &Rect, hBrush);
1100 return (1);
1101 }
1102
1103 case WM_GETHOTKEY:
1104 //ERR("WM_GETHOTKEY\n");
1105 return DefWndGetHotKey(Wnd);
1106 case WM_SETHOTKEY:
1107 //ERR("WM_SETHOTKEY\n");
1108 return DefWndSetHotKey(Wnd, wParam);
1109
1110 case WM_NCHITTEST:
1111 {
1112 POINT Point;
1115 return GetNCHitEx(Wnd, Point);
1116 }
1117
1118 case WM_PRINT:
1119 {
1120 DefWndPrint(Wnd, (HDC)wParam, lParam);
1121 return (0);
1122 }
1123
1124 case WM_SYSCOLORCHANGE:
1125 {
1126 /* force to redraw non-client area */
1127 UserPaintCaption(Wnd, DC_NC);
1128 /* Use InvalidateRect to redraw client area, enable
1129 * erase to redraw all subcontrols otherwise send the
1130 * WM_SYSCOLORCHANGE to child windows/controls is required
1131 */
1133 return (0);
1134 }
1135
1136 case WM_PAINTICON:
1137 case WM_PAINT:
1138 {
1139 PAINTSTRUCT Ps;
1140 HDC hDC;
1141
1142 /* If already in Paint and Client area is not empty just return. */
1143 if (Wnd->state2 & WNDS2_STARTPAINT && !RECTL_bIsEmptyRect(&Wnd->rcClient))
1144 {
1145 ERR("In Paint and Client area is not empty!\n");
1146 return 0;
1147 }
1148
1149 hDC = IntBeginPaint(Wnd, &Ps);
1150 if (hDC)
1151 {
1152 if (((Wnd->style & WS_MINIMIZE) != 0) && (Wnd->pcls->spicn))
1153 {
1154 RECT ClientRect;
1155 INT x, y;
1156
1157 ERR("Doing Paint and Client area is empty!\n");
1158 IntGetClientRect(Wnd, &ClientRect);
1159 x = (ClientRect.right - ClientRect.left - UserGetSystemMetrics(SM_CXICON)) / 2;
1160 y = (ClientRect.bottom - ClientRect.top - UserGetSystemMetrics(SM_CYICON)) / 2;
1162 UserDrawIconEx(hDC, x, y, Wnd->pcls->spicn, 0, 0, 0, 0, DI_NORMAL | DI_COMPAT | DI_DEFAULTSIZE);
1164 }
1165
1166 IntEndPaint(Wnd, &Ps);
1167 }
1168 return (0);
1169 }
1170
1171 case WM_SYNCPAINT:
1172 {
1173 HRGN hRgn;
1174 Wnd->state &= ~WNDS_SYNCPAINTPENDING;
1175 TRACE("WM_SYNCPAINT\n");
1176 hRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
1177 if (hRgn)
1178 {
1180 {
1181 PREGION pRgn = REGION_LockRgn(hRgn);
1182 if (pRgn) REGION_UnlockRgn(pRgn);
1183 if (!wParam)
1185 co_UserRedrawWindow(Wnd, NULL, pRgn, wParam);
1186 }
1188 }
1189 return 0;
1190 }
1191
1192 case WM_SETREDRAW:
1193 if (wParam)
1194 {
1195 if (!(Wnd->style & WS_VISIBLE))
1196 {
1197 IntSetStyle( Wnd, WS_VISIBLE, 0 );
1198 Wnd->state |= WNDS_SENDNCPAINT;
1199 }
1200 }
1201 else
1202 {
1203 if (Wnd->style & WS_VISIBLE)
1204 {
1206 IntSetStyle( Wnd, 0, WS_VISIBLE );
1207 }
1208 }
1209 return 0;
1210
1212 {
1214 }
1215
1217 {
1219 }
1220
1221 case WM_NCCALCSIZE:
1222 {
1223 return NC_HandleNCCalcSize( Wnd, wParam, (RECTL *)lParam, FALSE );
1224 }
1225
1226 case WM_NCACTIVATE:
1227 {
1228 return NC_HandleNCActivate( Wnd, wParam, lParam );
1229 }
1230
1231 //
1232 // NC Paint mode.
1233 //
1234 case WM_NCPAINT:
1235 {
1237 Wnd->state |= WNDS_FORCEMENUDRAW;
1238 NC_DoNCPaint(Wnd, hDC, -1);
1239 Wnd->state &= ~WNDS_FORCEMENUDRAW;
1240 UserReleaseDC(Wnd, hDC, FALSE);
1241 return 0;
1242 }
1243 //
1244 // Draw Caption mode.
1245 //
1246 // wParam are DC_* flags.
1247 //
1249 {
1251 TRACE("WM_NCUAHDRAWCAPTION: wParam DC_ flags %08x\n",wParam);
1252 UserDrawCaptionBar(Wnd, hDC, wParam | DC_FRAME); // Include DC_FRAME to comp for drawing glitch.
1253 UserReleaseDC(Wnd, hDC, FALSE);
1254 return 0;
1255 }
1256 //
1257 // Draw Frame mode.
1258 //
1259 // wParam is HDC, lParam are DC_ACTIVE and or DC_REDRAWHUNGWND.
1260 //
1261 case WM_NCUAHDRAWFRAME:
1262 {
1263 TRACE("WM_NCUAHDRAWFRAME: wParam hDC %p lParam DC_ flags %08x\n",wParam,lParam);
1265 return 0;
1266 }
1267
1268 /* ReactOS only. */
1269 case WM_CBT:
1270 {
1271 switch (wParam)
1272 {
1273 case HCBT_MOVESIZE:
1274 {
1275 RECTL rt;
1276
1277 if (lParam)
1278 {
1279 _SEH2_TRY
1280 {
1282 sizeof(RECT),
1283 1);
1284
1285 RtlCopyMemory(&rt,
1286 (PVOID)lParam,
1287 sizeof(RECT));
1288 }
1290 {
1291 lResult = 1;
1292 }
1293 _SEH2_END;
1294 }
1295 if (!lResult)
1297
1298 break;
1299 }
1300 }
1301 break;
1302 }
1303 }
1304 return lResult;
1305}
1306
1307/* EOF */
static HDC hDC
Definition: 3dtext.c:33
#define DCX_USESTYLE
Definition: GetDCEx.c:10
static HBITMAP hbitmap
HDC hdc2
Definition: SelectObject.c:10
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
Definition: acpixf.h:732
Arabic default style
Definition: afstyles.h:94
const DWORD Style
Definition: appswitch.c:71
#define CF_BITMAP
Definition: constants.h:397
#define FIXME(fmt,...)
Definition: precomp.h:53
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
#define UlongToHandle(ul)
Definition: basetsd.h:97
#define HandleToUlong(h)
Definition: basetsd.h:79
#define DBG_DEFAULT_CHANNEL(ch)
Definition: debug.h:106
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
struct @1645 Msg[]
#define SWP_NOCLIENTSIZE
Definition: msg.h:31
#define SWP_NOCLIENTMOVE
Definition: msg.h:32
BOOL FASTCALL GreDPtoLP(HDC, LPPOINT, INT)
Definition: dcutil.c:7
static HWND hwndParent
Definition: cryptui.c:300
#define SYSTEMCUR(func)
Definition: cursoricon.h:129
#define DC_ACTIVE
Definition: dc21x4.h:120
COLORREF FASTCALL IntGdiSetBkColor(_In_ HDC hDC, _In_ COLORREF Color)
COLORREF FASTCALL IntGdiSetTextColor(HDC hDC, COLORREF color)
Definition: dcutil.c:172
ush Pos
Definition: deflate.h:92
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
UINT uFlags
Definition: api.c:59
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
PSERVERINFO gpsi
Definition: imm.c:18
#define ValidateHwndNoErr(hwnd)
Definition: precomp.h:84
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
Definition: typeof.h:94
r parent
Definition: btrfs.c:3010
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
Definition: exintrin.c:102
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
HWND FASTCALL co_UserSetFocus(PWND Window)
Definition: focus.c:1317
HWND FASTCALL IntGetCaptureWindow(VOID)
Definition: focus.c:34
PUSER_MESSAGE_QUEUE gpqForeground
Definition: focus.c:13
BOOL FASTCALL co_IntSetForegroundWindow(PWND Window)
Definition: focus.c:1552
BOOL FASTCALL IntReleaseCapture(VOID)
Definition: focus.c:1532
HWND FASTCALL UserGetActiveWindow(VOID)
Definition: focus.c:1432
HWND FASTCALL UserGetForegroundWindow(VOID)
Definition: focus.c:1424
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:10859
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLbitfield flags
Definition: glext.h:7161
GLenum GLsizei len
Definition: glext.h:6722
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
#define ISITHOOKED(HookId)
Definition: hook.h:6
#define HOOKID_TO_FLAG(HookId)
Definition: hook.h:5
#define WNDS_SENDNCPAINT
Definition: ntuser.h:616
#define UserHMGetHandle(obj)
Definition: ntuser.h:230
#define WNDS_FORCEMENUDRAW
Definition: ntuser.h:620
#define TIF_16BIT
Definition: ntuser.h:264
#define SRVINFO_APIHOOK
Definition: ntuser.h:950
#define WNDS_HASCAPTION
Definition: ntuser.h:608
#define WNDS2_STARTPAINT
Definition: ntuser.h:643
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:90
HGDIOBJ FASTCALL IntGetSysColorBrush(INT Object)
Definition: stockobj.c:317
DWORD FASTCALL IntGetSysColor(INT nIndex)
Definition: stockobj.c:323
#define SC_SCREENSAVE
Definition: mmsystem.h:933
HDC hdc
Definition: main.c:9
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
static HICON
Definition: imagelist.c:80
static HRGN hRgn
Definition: mapping.c:33
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define WM_KEYF1
Definition: msg.c:47
#define SWP_STATECHANGED
Definition: msg.c:42
#define min(a, b)
Definition: monoChain.cc:55
HICON hIcon
Definition: msconfig.c:44
DWORD FASTCALL UserGetKeyState(DWORD dwKey)
Definition: msgqueue.c:221
#define QF_FMENUSTATUSBREAK
Definition: msgqueue.h:96
#define QF_FMENUSTATUS
Definition: msgqueue.h:97
#define QF_FF10STATUS
Definition: msgqueue.h:98
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
unsigned int UINT
Definition: ndis.h:50
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ OwnerSize PSID Owner
Definition: rtlfuncs.h:1609
_Use_decl_annotations_ NTSTATUS NTAPI RtlUnicodeToMultiByteSize(_Out_ PULONG MbSize, _In_ PCWCH UnicodeString, _In_ ULONG UnicodeSize)
Definition: nlsboot.c:145
#define FASTCALL
Definition: nt_native.h:50
#define DEFAULT_UNREACHABLE
__kernel_entry W32KAPI HBITMAP APIENTRY NtGdiCreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
__kernel_entry W32KAPI HDC APIENTRY NtGdiCreateCompatibleDC(_In_opt_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiBitBlt(_In_ HDC hdcDst, _In_ INT x, _In_ INT y, _In_ INT cx, _In_ INT cy, _In_opt_ HDC hdcSrc, _In_ INT xSrc, _In_ INT ySrc, _In_ DWORD rop4, _In_ DWORD crBackColor, _In_ FLONG fl)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiUnrealizeObject(_In_ HANDLE h)
__kernel_entry W32KAPI HRGN APIENTRY NtGdiCreateRectRgn(_In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom)
__kernel_entry W32KAPI HBITMAP APIENTRY NtGdiSelectBitmap(_In_ HDC hdc, _In_ HBITMAP hbm)
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
Definition: thread.c:805
LRESULT FASTCALL DefWndHandleWindowPosChanged(PWND pWnd, WINDOWPOS *Pos)
Definition: defwnd.c:95
LRESULT DefWndHandleSetCursor(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: defwnd.c:243
LRESULT FASTCALL IntDefWindowProc(PWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL Ansi)
Definition: defwnd.c:587
LRESULT FASTCALL DefWndGetIcon(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: defwnd.c:476
VOID FASTCALL DefWndScreenshot(PWND pWnd)
Definition: defwnd.c:551
LRESULT FASTCALL DefWndHandleWindowPosChanging(PWND pWnd, WINDOWPOS *Pos)
Definition: defwnd.c:68
VOID FASTCALL DefWndPrint(PWND pwnd, HDC hdc, ULONG uFlags)
Definition: defwnd.c:365
LRESULT FASTCALL DefWndHandleSysCommand(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: defwnd.c:125
BOOL UserPaintCaption(PWND pWnd, INT Flags)
Definition: defwnd.c:398
LRESULT FASTCALL DefWndSetIcon(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: defwnd.c:437
INT WINAPI DrawTextExWorker(HDC hdc, LPWSTR str, INT i_count, LPRECT rect, UINT flags, LPDRAWTEXTPARAMS dtp)
Definition: text.c:1071
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
Definition: defwnd.c:16
PWND FASTCALL DWP_GetEnabledPopup(PWND pWnd)
Definition: defwnd.c:499
PWND FASTCALL co_IntFindChildWindowToOwner(PWND Root, PWND Owner)
Definition: defwnd.c:216
HBRUSH FASTCALL DefWndControlColor(HDC hDC, UINT ctlType)
Definition: defwnd.c:32
LRESULT APIENTRY co_HOOK_CallHooks(INT HookId, INT Code, WPARAM wParam, LPARAM lParam)
Definition: hook.c:1102
BOOL FASTCALL IntClientToScreen(PWND Wnd, LPPOINT lpPoint)
Definition: winpos.c:199
VOID FASTCALL IntSetSnapInfo(PWND Wnd, UINT Edge, IN const RECT *Pos OPTIONAL)
Definition: winpos.c:4004
BOOLEAN FASTCALL co_WinPosSetWindowPos(PWND Window, HWND WndInsertAfter, INT x, INT y, INT cx, INT cy, UINT flags)
Definition: winpos.c:1792
VOID FASTCALL co_IntSnapWindow(PWND Wnd, UINT Edge)
Definition: winpos.c:3932
VOID FASTCALL co_IntCalculateSnapPosition(PWND Wnd, UINT Edge, OUT RECT *Pos)
Definition: winpos.c:3902
BOOL FASTCALL IntGetWindowRect(PWND Wnd, RECTL *Rect)
Definition: winpos.c:121
UINT FASTCALL co_WinPosGetMinMaxInfo(PWND Window, POINT *MaxSize, POINT *MaxPos, POINT *MinTrack, POINT *MaxTrack)
Definition: winpos.c:940
BOOL FASTCALL IntScreenToClient(PWND Wnd, LPPOINT lpPoint)
Definition: winpos.c:213
BOOLEAN FASTCALL co_WinPosShowWindow(PWND Wnd, INT Cmd)
Definition: winpos.c:2584
UINT FASTCALL IntGetWindowSnapEdge(PWND Wnd)
Definition: winpos.c:3894
VOID FASTCALL IntSetSnapEdge(PWND Wnd, UINT Edge)
Definition: winpos.c:3979
HWND hwndSAS
Definition: winsta.c:24
#define L(x)
Definition: ntvdm.h:50
static __inline VOID UserDerefObjectCo(PVOID obj)
Definition: object.h:43
static __inline VOID UserRefObjectCo(PVOID obj, PUSER_REFERENCE_ENTRY UserReferenceEntry)
Definition: object.h:27
#define LRESULT
Definition: ole.h:14
#define LOWORD(l)
Definition: pedump.c:82
#define WS_CHILD
Definition: pedump.c:617
#define WS_CAPTION
Definition: pedump.c:624
#define WS_MAXIMIZE
Definition: pedump.c:623
#define WS_POPUP
Definition: pedump.c:616
#define WS_MINIMIZE
Definition: pedump.c:622
#define WS_VISIBLE
Definition: pedump.c:620
long LONG
Definition: pedump.c:60
#define WS_DISABLED
Definition: pedump.c:621
#define WS_MINIMIZEBOX
Definition: pedump.c:631
#define WS_THICKFRAME
Definition: pedump.c:630
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:66
#define _SEH2_END
Definition: pseh2_64.h:155
#define _SEH2_TRY
Definition: pseh2_64.h:55
#define WM_CONTEXTMENU
Definition: richedit.h:64
#define WM_PRINTCLIENT
Definition: richedit.h:70
const WCHAR * str
#define memset(x, y, z)
Definition: compat.h:39
#define TRACE(s)
Definition: solgame.cpp:4
& rect
Definition: startmenu.cpp:1413
root entry for file system trees
Definition: entries.h:148
struct _CURICON_OBJECT * spcur
Definition: ntuser.h:586
struct _CURICON_OBJECT * spicn
Definition: ntuser.h:585
HBRUSH hbrBackground
Definition: ntuser.h:587
UINT style
Definition: ntuser.h:580
Definition: region.h:8
DWORD dwForegroundFlashCount
Definition: sysparams.h:157
struct _DESKTOP * rpdesk
Definition: ntuser.h:194
FLONG TIF_flags
Definition: win32.h:95
struct _USER_MESSAGE_QUEUE * MessageQueue
Definition: win32.h:89
Definition: object.h:4
Definition: ntuser.h:694
PCLS pcls
Definition: ntuser.h:720
struct _WND * spwndOwner
Definition: ntuser.h:715
THRDESKHEAD head
Definition: ntuser.h:695
struct _WND * spwndLastActive
Definition: ntuser.h:739
DWORD style
Definition: ntuser.h:706
DWORD state2
Definition: ntuser.h:702
RECT rcClient
Definition: ntuser.h:717
LARGE_UNICODE_STRING strName
Definition: ntuser.h:736
DWORD state
Definition: ntuser.h:701
UINT_PTR IDMenu
Definition: ntuser.h:731
struct _WND * spwndNext
Definition: ntuser.h:711
struct _WND::@5198 InternalPos
struct _WND * spwndParent
Definition: ntuser.h:713
POINT MousePos
Definition: winuser.h:3320
int iCtrlId
Definition: winuser.h:3317
DWORD_PTR dwContextId
Definition: winuser.h:3319
HANDLE hItemHandle
Definition: winuser.h:3318
int iContextType
Definition: winuser.h:3316
UINT cbSize
Definition: winuser.h:3315
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
ATOM atomIconProp
Definition: ntuser.h:1066
DWORD dwSRVIFlags
Definition: ntuser.h:1051
ATOM atomIconSmProp
Definition: ntuser.h:1065
#define max(a, b)
Definition: svc.c:63
#define ICON_BIG
Definition: tnclass.cpp:51
#define ICON_SMALL
Definition: tnclass.cpp:48
#define WM_MOUSEWHEEL
Definition: treelist.c:96
uint16_t * PWSTR
Definition: typedefs.h:56
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define MAKELONG(a, b)
Definition: typedefs.h:249
uint32_t ULONG
Definition: typedefs.h:59
#define HIWORD(l)
Definition: typedefs.h:247
#define DCX_KEEPCLIPRGN
Definition: undocuser.h:68
#define TPM_SYSTEM_MENU
Definition: undocuser.h:73
#define WM_NCUAHDRAWCAPTION
Definition: undocuser.h:46
#define DC_FRAME
Definition: undocuser.h:149
#define WM_LOGONNOTIFY
Definition: undocuser.h:37
#define LN_START_SCREENSAVE
Definition: undocuser.h:121
#define LN_MESSAGE_BEEP
Definition: undocuser.h:120
#define WM_CLIENTSHUTDOWN
Definition: undocuser.h:35
#define WM_CBT
Definition: undocuser.h:63
#define WM_NCUAHDRAWFRAME
Definition: undocuser.h:47
BOOL FASTCALL IntFlashWindowEx(PWND pWnd, PFLASHWINFO pfwi)
Definition: painting.c:1311
HDC FASTCALL IntBeginPaint(PWND Window, PPAINTSTRUCT Ps)
Definition: painting.c:1442
BOOL FASTCALL co_UserRedrawWindow(PWND Window, const RECTL *UpdateRect, PREGION UpdateRgn, ULONG Flags)
Definition: painting.c:895
BOOL FASTCALL IntEndPaint(PWND Wnd, PPAINTSTRUCT Ps)
Definition: painting.c:1539
INT FASTCALL co_UserGetUpdateRgn(PWND Window, HRGN hRgn, BOOL bErase)
Definition: painting.c:1791
DWORD FASTCALL IntGetWindowContextHelpId(PWND pWnd)
Definition: window.c:440
PWND FASTCALL UserGetWindowObject(HWND hWnd)
Definition: window.c:124
HDC FASTCALL UserGetWindowDC(PWND Wnd)
Definition: windc.c:947
PWND FASTCALL UserGetAncestor(PWND Wnd, UINT Type)
Definition: window.c:3344
BOOLEAN co_UserDestroyWindow(PVOID Object)
Definition: window.c:2856
INT FASTCALL UserReleaseDC(PWND Window, HDC hDc, BOOL EndPaint)
Definition: windc.c:918
BOOL APIENTRY DefSetText(PWND Wnd, PCWSTR WindowText)
Definition: window.c:4377
HDC FASTCALL UserGetDCEx(PWND Window OPTIONAL, HANDLE ClipRegion, ULONG Flags)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:536
BOOL NTAPI GreDeleteObject(HGDIOBJ hobj)
Definition: gdiobj.c:1158
FORCEINLINE BOOL RECTL_bIsEmptyRect(_In_ const RECTL *prcl)
Definition: rect.h:44
PREGION FASTCALL REGION_LockRgn(_In_ HRGN hrgn)
Definition: region.c:2358
VOID FASTCALL REGION_UnlockRgn(_In_ PREGION prgn)
Definition: region.c:2373
BOOL NTAPI UserEmptyClipboard(VOID)
Definition: clipboard.c:680
BOOL NTAPI UserCloseClipboard(VOID)
Definition: clipboard.c:545
BOOL NTAPI UserOpenClipboard(HWND hWnd)
Definition: clipboard.c:488
HANDLE NTAPI UserSetClipboardData(UINT fmt, HANDLE hData, PSETCLIPBDATA scd)
Definition: clipboard.c:1023
PCURICON_OBJECT IntSystemSetCursor(PCURICON_OBJECT pcurNew)
Definition: cursoricon.c:230
BOOL UserDrawIconEx(HDC hDc, INT xLeft, INT yTop, PCURICON_OBJECT pIcon, INT cxWidth, INT cyHeight, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags)
Definition: cursoricon.c:1689
PWND FASTCALL UserGetDesktopWindow(VOID)
Definition: desktop.c:1403
VOID co_IntShellHookNotify(WPARAM Message, WPARAM wParam, LPARAM lParam)
Definition: desktop.c:1709
PWND FASTCALL co_GetDesktopWindow(PWND pWnd)
Definition: desktop.c:1383
VOID FASTCALL IntNotifyWinEvent(DWORD Event, PWND pWnd, LONG idObject, LONG idChild, DWORD flags)
Definition: event.c:178
UINT FASTCALL DefWndGetHotKey(PWND pWnd)
Definition: hotkey.c:313
INT FASTCALL DefWndSetHotKey(PWND pWnd, WPARAM wParam)
Definition: hotkey.c:340
BYTE gafAsyncKeyState[256 *2/8]
Definition: keyboard.c:13
#define IS_KEY_DOWN(ks, vk)
Definition: input.h:98
PMENU FASTCALL IntGetSystemMenu(PWND Window, BOOL bRevert)
Definition: menu.c:5399
INT FASTCALL IntMenuItemFromPoint(PWND pWnd, HMENU hMenu, POINT ptScreen)
Definition: menu.c:1518
PWND MENU_IsMenuActive(VOID)
Definition: menu.c:2650
void MENU_EndMenu(PWND pwnd)
Definition: menu.c:2662
void FASTCALL MENU_InitSysMenuPopup(PMENU menu, DWORD style, DWORD clsStyle, LONG HitTest)
Definition: menu.c:1362
BOOL WINAPI IntTrackPopupMenuEx(PMENU menu, UINT wFlags, int x, int y, PWND pWnd, LPTPMPARAMS lpTpm)
Definition: menu.c:4577
VOID MENU_TrackKbdMenuBar(PWND pwnd, UINT wParam, WCHAR wChar)
Definition: menu.c:4516
VOID MENU_TrackMouseMenuBar(PWND pWnd, ULONG ht, POINT pt)
Definition: menu.c:4486
BOOL FASTCALL UserPostMessage(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: message.c:1395
LRESULT FASTCALL co_IntSendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: message.c:1495
LONG NTAPI UserGetSystemMetrics(ULONG Index)
Definition: metric.c:214
LRESULT NC_HandleNCLButtonDown(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: nonclient.c:1572
VOID UserDrawCaptionBar(PWND pWnd, HDC hDC, INT Flags)
Definition: nonclient.c:952
DWORD FASTCALL GetNCHitEx(PWND pWnd, POINT pt)
Definition: nonclient.c:1982
VOID FASTCALL DefWndDoSizeMove(PWND pwnd, WORD wParam)
Definition: nonclient.c:251
LRESULT NC_HandleNCActivate(PWND Wnd, WPARAM wParam, LPARAM lParam)
Definition: nonclient.c:1435
LRESULT NC_DoNCPaint(PWND pWnd, HDC hDC, INT Flags)
Definition: nonclient.c:1094
LRESULT NC_HandleNCCalcSize(PWND Wnd, WPARAM wparam, RECTL *Rect, BOOL Suspended)
Definition: nonclient.c:1301
LRESULT NC_HandleNCRButtonDown(PWND pwnd, WPARAM wParam, LPARAM lParam)
Definition: nonclient.c:1722
LRESULT NC_HandleNCLButtonDblClk(PWND pWnd, WPARAM wParam, LPARAM lParam)
Definition: nonclient.c:1664
BOOL FASTCALL UserDereferenceObject(PVOID Object)
Definition: object.c:644
VOID FASTCALL UserReferenceObject(PVOID obj)
Definition: object.c:731
HANDLE FASTCALL UserGetProp(_In_ PWND Window, _In_ ATOM Atom, _In_ BOOLEAN SystemProp)
Definition: prop.c:46
LRESULT IntClientShutdown(IN PWND pWindow, IN WPARAM wParam, IN LPARAM lParam)
Definition: shutdown.c:22
BOOL g_bWindowSnapEnabled
Definition: sysparams.c:20
SPIVALUES gspv
Definition: sysparams.c:17
ULONG FASTCALL IntSetStyle(PWND pwnd, ULONG set_bits, ULONG clear_bits)
Definition: window.c:145
PWND FASTCALL IntGetParent(PWND Wnd)
Definition: window.c:206
BOOL FASTCALL IntShowOwnedPopups(PWND OwnerWnd, BOOL fShow)
Definition: window.c:4654
BOOL FASTCALL IntIsWindowVisible(PWND Wnd)
Definition: window.c:191
INT FASTCALL IntMapWindowPoints(PWND FromWnd, PWND ToWnd, LPPOINT lpPoints, UINT cPoints)
Definition: winpos.c:144
VOID FASTCALL IntGetClientRect(PWND WindowObject, RECTL *Rect)
Definition: winpos.c:92
#define OBJID_WINDOW
Definition: winable.h:15
#define CHILDID_SELF
Definition: winable.h:14
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:22
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
DWORD COLORREF
Definition: windef.h:300
#define WINAPI
Definition: msvc.h:6
#define GET_Y_LPARAM(lp)
Definition: windowsx.h:300
#define WM_CTLCOLOR
Definition: windowsx.h:29
#define GET_X_LPARAM(lp)
Definition: windowsx.h:299
#define DI_COMPAT
Definition: wingdi.h:68
#define NULLREGION
Definition: wingdi.h:361
#define DI_NORMAL
Definition: wingdi.h:72
#define SRCCOPY
Definition: wingdi.h:333
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
#define DI_DEFAULTSIZE
Definition: wingdi.h:69
FORCEINLINE VOID co_IntUnsnapWindow(PWND Wnd)
Definition: winpos.h:82
FORCEINLINE BOOLEAN IntIsSnapAllowedForWindow(PWND Wnd)
Definition: winpos.h:94
#define WM_PAINT
Definition: winuser.h:1623
#define HTTOPRIGHT
Definition: winuser.h:2495
#define WM_ERASEBKGND
Definition: winuser.h:1628
#define SC_MOUSEMENU
Definition: winuser.h:2598
#define WM_GETHOTKEY
Definition: winuser.h:1656
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1775
#define WM_GETTEXTLENGTH
Definition: winuser.h:1622
#define SW_HIDE
Definition: winuser.h:771
#define CTLCOLOR_SCROLLBAR
Definition: winuser.h:959
#define WM_CLOSE
Definition: winuser.h:1624
#define SWP_NOACTIVATE
Definition: winuser.h:1245
#define VK_SNAPSHOT
Definition: winuser.h:2234
#define WM_SYSCOMMAND
Definition: winuser.h:1744
#define SC_KEYMENU
Definition: winuser.h:2599
#define VK_TAB
Definition: winuser.h:2202
#define GA_ROOT
Definition: winuser.h:2792
#define MAKELPARAM(l, h)
Definition: winuser.h:4011
#define WM_KEYUP
Definition: winuser.h:1719
#define COLOR_WINDOW
Definition: winuser.h:921
#define COLOR_SCROLLBAR
Definition: winuser.h:915
#define PRF_NONCLIENT
Definition: winuser.h:2527
#define HTCAPTION
Definition: winuser.h:2479
#define DCX_WINDOW
Definition: winuser.h:2116
#define HELPINFO_MENUITEM
Definition: winuser.h:1174
#define VK_F10
Definition: winuser.h:2267
#define WM_SETHOTKEY
Definition: winuser.h:1655
#define WM_WINDOWPOSCHANGING
Definition: winuser.h:1664
#define HTTOPLEFT
Definition: winuser.h:2494
#define COLOR_WINDOWTEXT
Definition: winuser.h:924
#define TPM_RIGHTBUTTON
Definition: winuser.h:2383
#define WM_SYNCPAINT
Definition: winuser.h:1693
#define CTLCOLOR_LISTBOX
Definition: winuser.h:956
#define SW_MINIMIZE
Definition: winuser.h:779
#define HTBOTTOM
Definition: winuser.h:2496
#define SC_PREVWINDOW
Definition: winuser.h:2594
#define VK_SPACE
Definition: winuser.h:2222
#define WM_SIZE
Definition: winuser.h:1614
#define PRF_ERASEBKGND
Definition: winuser.h:2529
#define HTERROR
Definition: winuser.h:2475
#define WM_CANCELMODE
Definition: winuser.h:1638
#define DT_TABSTOP
Definition: winuser.h:541
#define WM_LBUTTONDBLCLK
Definition: winuser.h:1781
#define SWP_NOMOVE
Definition: winuser.h:1247
#define KF_ALTDOWN
Definition: winuser.h:2452
#define HTVSCROLL
Definition: winuser.h:2485
#define MA_ACTIVATE
Definition: winuser.h:2504
#define HTHSCROLL
Definition: winuser.h:2484
#define WM_APPCOMMAND
Definition: winuser.h:1885
#define WM_NCHITTEST
Definition: winuser.h:1689
#define WM_RBUTTONUP
Definition: winuser.h:1783
#define VK_UP
Definition: winuser.h:2228
#define SW_SHOWNOACTIVATE
Definition: winuser.h:777
#define SWP_NOSIZE
Definition: winuser.h:1248
#define WH_SHELL
Definition: winuser.h:40
#define WM_GETTEXT
Definition: winuser.h:1621
#define RDW_ERASE
Definition: winuser.h:1214
#define CTLCOLOR_EDIT
Definition: winuser.h:955
#define SIZE_MINIMIZED
Definition: winuser.h:2509
#define WM_CTLCOLORSCROLLBAR
Definition: winuser.h:1774
#define WA_INACTIVE
Definition: winuser.h:2625
#define MA_NOACTIVATE
Definition: winuser.h:2506
#define WM_LBUTTONDOWN
Definition: winuser.h:1779
#define WM_DEVICECHANGE
Definition: winuser.h:1814
#define WH_CBT
Definition: winuser.h:35
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1629
#define PRF_OWNED
Definition: winuser.h:2531
#define PRF_CHILDREN
Definition: winuser.h:2530
#define WM_CTLCOLORMSGBOX
Definition: winuser.h:1769
#define WM_NCLBUTTONDBLCLK
Definition: winuser.h:1697
#define SC_SIZE
Definition: winuser.h:2587
#define WM_ACTIVATE
Definition: winuser.h:1615
#define WM_SHOWWINDOW
Definition: winuser.h:1631
#define WM_RBUTTONDOWN
Definition: winuser.h:1782
#define SC_MINIMIZE
Definition: winuser.h:2589
#define WM_CTLCOLORBTN
Definition: winuser.h:1772
#define WM_SETTEXT
Definition: winuser.h:1620
#define SC_NEXTWINDOW
Definition: winuser.h:2593
#define DC_NC
Definition: winuser.h:440
#define DCX_INTERSECTRGN
Definition: winuser.h:2125
#define WM_NCACTIVATE
Definition: winuser.h:1691
#define WM_SYSCHAR
Definition: winuser.h:1724
#define VK_RETURN
Definition: winuser.h:2204
#define SM_CYICON
Definition: winuser.h:976
#define SIZE_MAXIMIZED
Definition: winuser.h:2510
#define VK_RMENU
Definition: winuser.h:2290
#define RDW_ALLCHILDREN
Definition: winuser.h:1224
#define HTRIGHT
Definition: winuser.h:2492
#define RDW_ERASENOW
Definition: winuser.h:1222
#define RDW_FRAME
Definition: winuser.h:1215
#define HTCLIENT
Definition: winuser.h:2478
#define WM_SYSKEYUP
Definition: winuser.h:1723
#define SC_HOTKEY
Definition: winuser.h:2604
#define HCBT_MOVESIZE
Definition: winuser.h:55
#define HTBOTTOMRIGHT
Definition: winuser.h:2498
#define HTNOWHERE
Definition: winuser.h:2477
#define SC_CLOSE
Definition: winuser.h:2595
#define DC_TEXT
Definition: winuser.h:430
#define SC_MOVE
Definition: winuser.h:2588
#define VK_LWIN
Definition: winuser.h:2238
struct tagHELPINFO HELPINFO
#define WM_MOUSEACTIVATE
Definition: winuser.h:1640
#define PRF_CLIENT
Definition: winuser.h:2528
#define TPM_LEFTBUTTON
Definition: winuser.h:2382
#define VK_F4
Definition: winuser.h:2261
#define WM_MOVE
Definition: winuser.h:1613
#define VK_LEFT
Definition: winuser.h:2227
#define VK_RIGHT
Definition: winuser.h:2229
#define SIZE_RESTORED
Definition: winuser.h:2508
#define HTBOTTOMLEFT
Definition: winuser.h:2497
#define HTTOP
Definition: winuser.h:2493
#define VK_DOWN
Definition: winuser.h:2230
#define COLOR_3DHILIGHT
Definition: winuser.h:940
#define PRF_CHECKVISIBLE
Definition: winuser.h:2526
#define SW_RESTORE
Definition: winuser.h:782
#define WM_SETCURSOR
Definition: winuser.h:1639
#define KF_REPEAT
Definition: winuser.h:2453
#define WM_USER
Definition: winuser.h:1898
#define WM_CTLCOLORLISTBOX
Definition: winuser.h:1771
#define VK_SHIFT
Definition: winuser.h:2205
#define DC_ICON
Definition: winuser.h:429
#define WM_NCRBUTTONUP
Definition: winuser.h:1699
#define WM_KEYDOWN
Definition: winuser.h:1718
#define WM_ICONERASEBKGND
Definition: winuser.h:1645
#define SW_MAXIMIZE
Definition: winuser.h:775
#define HTSYSMENU
Definition: winuser.h:2480
#define HTLEFT
Definition: winuser.h:2490
#define WM_PRINT
Definition: winuser.h:1883
#define WM_NCCALCSIZE
Definition: winuser.h:1688
#define CS_PARENTDC
Definition: winuser.h:656
#define SM_CXICON
Definition: winuser.h:975
#define RDW_VALIDATE
Definition: winuser.h:1221
#define WM_CTLCOLOREDIT
Definition: winuser.h:1770
#define VK_ESCAPE
Definition: winuser.h:2217
#define WM_WINDOWPOSCHANGED
Definition: winuser.h:1665
#define SC_RESTORE
Definition: winuser.h:2601
#define WM_CTLCOLORDLG
Definition: winuser.h:1773
#define CS_NOCLOSE
Definition: winuser.h:654
#define WM_SYSKEYDOWN
Definition: winuser.h:1722
#define WM_NCLBUTTONDOWN
Definition: winuser.h:1695
#define HCBT_SYSCOMMAND
Definition: winuser.h:63
#define RDW_INVALIDATE
Definition: winuser.h:1217
#define WM_PAINTICON
Definition: winuser.h:1644
#define WM_MBUTTONDOWN
Definition: winuser.h:1785
#define VK_RWIN
Definition: winuser.h:2239
#define SC_MAXIMIZE
Definition: winuser.h:2591
#define VK_LMENU
Definition: winuser.h:2289
#define VK_MENU
Definition: winuser.h:2207
#define WM_NCPAINT
Definition: winuser.h:1690
#define WM_NCRBUTTONDOWN
Definition: winuser.h:1698
#define COLOR_3DFACE
Definition: winuser.h:932
#define WM_SETREDRAW
Definition: winuser.h:1619
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_ ULONG _In_ BOOLEAN Active
Definition: potypes.h:561
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185