317{
320 {
322 if (!pWnd) return 0;
323 }
324
326 {
329
331 {
332
333
335 ERR(
"WM_POPUPSYSTEMMENU\n");
336 if (menu)
337 {
341 }
342 return 0;
343 }
344
346 {
352 if (bUnicode)
353 {
355 }
356 else
357 {
359 }
360 break;
361 }
362
364
365
366
367
368
369
370 ERR(
"WM_NCRBUTTONUP\n");
371 break;
372
373 case WM_XBUTTONUP:
374 case WM_NCXBUTTONUP:
376 {
379 }
380 break;
381
383 {
385 {
386 if (bUnicode)
387 {
389 }
390 else
391 {
393 }
394 }
395 else
396 {
397 goto GoSS;
398 }
399 break;
400 }
401
404 return (0);
405
408 {
410 if (Ret) return (Ret);
411 }
413
415
416
419 {
420
422 }
423 break;
424
428 break;
429
432 {
435
437 {
438 return 0;
439 }
441 {
442
445 }
446 else
447 {
449 }
451 return (1);
452 }
453
462
465
468
471 return (-1);
472
473
474
475
477 {
479 {
480 return(1);
481 }
482 break;
483 }
484
486 {
489
492 {
494 }
496 {
498 {
500 }
501 }
503 }
504
506 {
509 return isai;
510 }
511
512 case WM_NOTIFYFORMAT:
513 {
516 break;
517 }
518
519 case WM_GETICON:
520 {
522 }
523
524 case WM_HELP:
525 {
526 if (bUnicode)
527 {
529 }
530 else
531 {
533 }
534 break;
535 }
536
539 {
540 return (1);
541 }
542
543 case WM_INPUTLANGCHANGEREQUEST:
544 {
547
548 if ((
wParam & INPUTLANGCHANGE_BACKWARD) && (
wParam & INPUTLANGCHANGE_FORWARD))
550
552 if (hwndFocus && hwndFocus !=
hWnd &&
554 {
556 }
557
558 if (
wParam & INPUTLANGCHANGE_FORWARD)
560 else if (
wParam & INPUTLANGCHANGE_BACKWARD)
562 else
564
567 }
568
569 case WM_INPUTLANGCHANGE:
570 {
573
574 if (!win_array)
575 break;
576 while (win_array[
count])
579 break;
580 }
581
582 case WM_QUERYUISTATE:
583 {
587 {
589 Ret |= UISF_HIDEFOCUS;
591 Ret |= UISF_HIDEACCEL;
592 }
593 return Ret;
594 }
595
596 case WM_CHANGEUISTATE:
597 {
602
604 if (AlwaysShowCues)
605 break;
606
609 break;
610
611 if (
Flags & ~(UISF_HIDEFOCUS | UISF_HIDEACCEL | UISF_ACTIVE))
612 break;
613
614 if (
Flags & UISF_ACTIVE)
615 {
616 WARN(
"WM_CHANGEUISTATE does not yet support UISF_ACTIVE\n");
617 }
618
619 if (
Action == UIS_INITIALIZE)
620 {
623 break;
624
626 Flags = UISF_HIDEFOCUS | UISF_HIDEACCEL;
627
628
630 }
631
633 {
634 case UIS_SET:
635
637 break;
639 break;
640
641
642 return 0;
643
644 case UIS_CLEAR:
645
647 break;
649 break;
650
651
652 return 0;
653
654 default:
655 WARN(
"WM_CHANGEUISTATE: Unsupported Action 0x%x\n",
Action);
656 break;
657 }
658
660 {
661
662
664 }
665 else
666 {
667
668 Msg = WM_UPDATEUISTATE;
669 }
670
671 if (bUnicode)
673 else
675 }
676
677 case WM_UPDATEUISTATE:
678 {
684
686 if (AlwaysShowCues)
687 break;
688
691 break;
692
693 if (
Flags & ~(UISF_HIDEFOCUS | UISF_HIDEACCEL | UISF_ACTIVE))
694 break;
695
696 if (
Flags & UISF_ACTIVE)
697 {
698 WARN(
"WM_UPDATEUISTATE does not yet support UISF_ACTIVE\n");
699 }
700
701 if (
Action == UIS_INITIALIZE)
702 {
705 break;
706
708 Flags = UISF_HIDEFOCUS | UISF_HIDEACCEL;
709
710
712 }
713
715 {
716 case UIS_SET:
717
719 break;
721 break;
722
723
725 break;
726
727 case UIS_CLEAR:
728
730 break;
732 break;
733
734
736 break;
737
738 default:
739 WARN(
"WM_UPDATEUISTATE: Unsupported Action 0x%x\n",
Action);
740 return 0;
741 }
742
743
744 if (Change)
745 {
747 break;
748 }
749
750
754
755 break;
756 }
757
759 {
762 }
763
764
784 case WM_SETICON:
801GoSS:
802 {
805 return lResult;
806 }
807 }
808 return 0;
809}
#define UlongToHandle(ul)
GLuint GLuint GLsizei count
UINT NTAPI GlobalFlags(HGLOBAL hMem)
HKL NTAPI NtUserActivateKeyboardLayout(HKL hKL, ULONG Flags)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
LRESULT FASTCALL DefWndGetIcon(PWND pWnd, WPARAM wParam, LPARAM lParam)
LRESULT FASTCALL DefWndHandleSysCommand(PWND pWnd, WPARAM wParam, LPARAM lParam)
HBRUSH FASTCALL DefWndControlColor(HDC hDC, UINT ctlType)
EXTINLINE BOOL NtUserxUpdateUiState(HWND hWnd, DWORD Param)
#define WS_EX_ACCEPTFILES
struct _WND * spwndParent
#define WM_COPYGLOBALDATA
#define WM_NCUAHDRAWCAPTION
#define WM_QUERYDROPOBJECT
#define WM_CLIENTSHUTDOWN
#define WM_POPUPSYSTEMMENU
#define WM_NCUAHDRAWFRAME
static BOOL CALLBACK UserSendUiUpdateMsg(HWND hwnd, LPARAM lParam)
HWND * WIN_ListChildren(HWND hWndparent)
static __inline PDESKTOPINFO GetThreadDesktopInfo(VOID)
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
int WINAPI GetClipBox(_In_ HDC, _Out_ LPRECT)
BOOL WINAPI DPtoLP(_In_ HDC hdc, _Inout_updates_(c) LPPOINT lppt, _In_ int c)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
HWND WINAPI GetFocus(void)
#define KLF_SETFORPROCESS
#define WM_WINDOWPOSCHANGING
BOOL WINAPI SetForegroundWindow(_In_ HWND)
#define WM_CTLCOLORSCROLLBAR
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
#define WM_SYSCOLORCHANGE
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
#define WM_NCLBUTTONDBLCLK
BOOL WINAPI IsWindowUnicode(_In_ HWND)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define WM_QUERYENDSESSION
#define GCL_HBRBACKGROUND
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HWND WINAPI GetParent(_In_ HWND)
#define WM_CTLCOLORLISTBOX
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
#define MAKEINTRESOURCEW(i)
#define WM_ICONERASEBKGND
#define WM_WINDOWPOSCHANGED
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
_Must_inspect_result_ _In_ ULONG Flags