530{
534
536
538
541
544 {
546
548
552
555
556
557 infoPtr = heap_alloc_zero (sizeof(*infoPtr));
558 if (!infoPtr) return -1;
560
561
572
573 TRACE(
"Progress Ctrl creation, hwnd=%p\n",
hwnd);
574 return 0;
575 }
576
578 TRACE(
"Progress Ctrl destruction, hwnd=%p\n",
hwnd);
583 return 0;
584
586 return 1;
587
590
593
597
601 return 0;
602
603 case WM_THEMECHANGED:
604 {
606
610
611
612 if (theme)
613 dwExStyle &= ~WS_EX_STATICEDGE;
614 else
617
619 return 0;
620 }
621
623 {
629 TRACE(
"PBM_DELTAPOS: current pos changed from %d to %d\n", oldVal, infoPtr->
CurVal);
632 }
633 return oldVal;
634 }
635
638
641
643 {
645 oldStep = infoPtr->
Step;
647 return oldStep;
648 }
649
650 case PBM_GETSTEP:
651 return infoPtr->
Step;
652
654 {
655 int oldVal = infoPtr->
CurVal;
656
658 {
664
665 if (oldVal != infoPtr->
CurVal)
666 {
667 TRACE(
"PBM_STEPIT: current pos changed from %d to %d\n", oldVal, infoPtr->
CurVal);
670 }
671 }
672
673 return oldVal;
674 }
675
678
683 }
685
688
690 {
692
695 return clr;
696 }
697
698 case PBM_GETBARCOLOR:
700
702 {
704
707 return clr;
708 }
709
710 case PBM_GETBKCOLOR:
712
713 case PBM_SETSTATE:
716 return PBST_NORMAL;
717
718 case PBM_GETSTATE:
719 return PBST_NORMAL;
720
723 {
727 }
728 else
729 {
732 }
734
735 default:
739 }
740}
static BOOL heap_free(void *mem)
BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN
#define DEFAULT_MARQUEE_PERIOD
static UINT PROGRESS_SetPos(PROGRESS_INFO *infoPtr, INT pos)
static HFONT PROGRESS_SetFont(PROGRESS_INFO *infoPtr, HFONT hFont, BOOL bRedraw)
static DWORD PROGRESS_SetRange(PROGRESS_INFO *infoPtr, int low, int high)
static LRESULT PROGRESS_Paint(PROGRESS_INFO *infoPtr, HDC hdc)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
struct PBRANGE * PPBRANGE
#define GetWindowLongPtrW
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SetWindowLongPtrW