Lines Matching refs:iState
342 sal_Bool ImplDrawTheme( HTHEME hTheme, HDC hDC, int iPart, int iState, RECT rc, const OUString& aSt… in ImplDrawTheme() argument
344 HRESULT hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawTheme()
349 hr = vsAPI.GetThemeBackgroundContentRect( hTheme, hDC, iPart, iState, &rc, &rcContent); in ImplDrawTheme()
350 hr = vsAPI.DrawThemeText( hTheme, hDC, iPart, iState, in ImplDrawTheme()
359 Rectangle ImplGetThemeRect( HTHEME hTheme, HDC hDC, int iPart, int iState, const Rectangle& aRect, … in ImplGetThemeRect() argument
367 …HRESULT hr = vsAPI.GetThemePartSize( hTheme, hDC, iPart, iState, NULL, eTS, &aSz ); // TS_TRUE ret… in ImplGetThemeRect()
459 int iPart(0), iState(0); in ImplDrawNativeControl() local
467 iState = ABS_UPPRESSED; in ImplDrawNativeControl()
469 iState = ABS_UPDISABLED; in ImplDrawNativeControl()
471 iState = ABS_UPHOT; in ImplDrawNativeControl()
473 iState = ABS_UPNORMAL; in ImplDrawNativeControl()
474 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
481 iState = ABS_DOWNPRESSED; in ImplDrawNativeControl()
483 iState = ABS_DOWNDISABLED; in ImplDrawNativeControl()
485 iState = ABS_DOWNHOT; in ImplDrawNativeControl()
487 iState = ABS_DOWNNORMAL; in ImplDrawNativeControl()
488 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
495 iState = ABS_LEFTPRESSED; in ImplDrawNativeControl()
497 iState = ABS_LEFTDISABLED; in ImplDrawNativeControl()
499 iState = ABS_LEFTHOT; in ImplDrawNativeControl()
501 iState = ABS_LEFTNORMAL; in ImplDrawNativeControl()
502 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
509 iState = ABS_RIGHTPRESSED; in ImplDrawNativeControl()
511 iState = ABS_RIGHTDISABLED; in ImplDrawNativeControl()
513 iState = ABS_RIGHTHOT; in ImplDrawNativeControl()
515 iState = ABS_RIGHTNORMAL; in ImplDrawNativeControl()
516 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
523 iState = SCRBS_PRESSED; in ImplDrawNativeControl()
525 iState = SCRBS_DISABLED; in ImplDrawNativeControl()
527 iState = SCRBS_HOT; in ImplDrawNativeControl()
529 iState = SCRBS_NORMAL; in ImplDrawNativeControl()
532 vsAPI.GetThemePartSize(hTheme, hDC, iPart, iState, NULL, TS_MIN, &sz); in ImplDrawNativeControl()
533 vsAPI.GetThemePartSize(hTheme, hDC, iPart, iState, NULL, TS_TRUE, &sz); in ImplDrawNativeControl()
534 vsAPI.GetThemePartSize(hTheme, hDC, iPart, iState, NULL, TS_DRAW, &sz); in ImplDrawNativeControl()
536 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
542 iState = 0; in ImplDrawNativeControl()
543 vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
558 iState = SCRBS_PRESSED; in ImplDrawNativeControl()
560 iState = SCRBS_DISABLED; in ImplDrawNativeControl()
562 iState = SCRBS_HOT; in ImplDrawNativeControl()
564 iState = SCRBS_NORMAL; in ImplDrawNativeControl()
565 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
577 …onValues( pValue->mnUpperPart, pValue->mnUpperState, pValue->maUpperRect, &iPart, &iState, &rect ); in ImplDrawNativeControl()
578 bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption); in ImplDrawNativeControl()
582 …onValues( pValue->mnLowerPart, pValue->mnLowerState, pValue->maLowerRect, &iPart, &iState, &rect ); in ImplDrawNativeControl()
583 bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption); in ImplDrawNativeControl()
602 …onValues( pValue->mnUpperPart, pValue->mnUpperState, pValue->maUpperRect, &iPart, &iState, &rect ); in ImplDrawNativeControl()
603 bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption); in ImplDrawNativeControl()
607 …onValues( pValue->mnLowerPart, pValue->mnLowerState, pValue->maLowerRect, &iPart, &iState, &rect ); in ImplDrawNativeControl()
608 bOk = ImplDrawTheme( hTheme, hDC, iPart, iState, rect, aCaption); in ImplDrawNativeControl()
619 iState = DNS_PRESSED; in ImplDrawNativeControl()
621 iState = DNS_DISABLED; in ImplDrawNativeControl()
623 iState = DNS_HOT; in ImplDrawNativeControl()
625 iState = DNS_NORMAL; in ImplDrawNativeControl()
631 iState = UPS_PRESSED; in ImplDrawNativeControl()
633 iState = UPS_DISABLED; in ImplDrawNativeControl()
635 iState = UPS_HOT; in ImplDrawNativeControl()
637 iState = UPS_NORMAL; in ImplDrawNativeControl()
643 iState = DNHZS_PRESSED; in ImplDrawNativeControl()
645 iState = DNHZS_DISABLED; in ImplDrawNativeControl()
647 iState = DNHZS_HOT; in ImplDrawNativeControl()
649 iState = DNHZS_NORMAL; in ImplDrawNativeControl()
655 iState = UPHZS_PRESSED; in ImplDrawNativeControl()
657 iState = UPHZS_DISABLED; in ImplDrawNativeControl()
659 iState = UPHZS_HOT; in ImplDrawNativeControl()
661 iState = UPHZS_NORMAL; in ImplDrawNativeControl()
664 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
672 iState = CBXS_PRESSED; in ImplDrawNativeControl()
674 iState = CBXS_DISABLED; in ImplDrawNativeControl()
676 iState = CBXS_HOT; in ImplDrawNativeControl()
678 iState = CBXS_NORMAL; in ImplDrawNativeControl()
679 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
686 iState = PBS_PRESSED; in ImplDrawNativeControl()
688 iState = PBS_DISABLED; in ImplDrawNativeControl()
690 iState = PBS_HOT; in ImplDrawNativeControl()
692 iState = PBS_DEFAULTED; in ImplDrawNativeControl()
696 iState = PBS_NORMAL; in ImplDrawNativeControl()
698 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
707 iState = bChecked ? RBS_CHECKEDPRESSED : RBS_UNCHECKEDPRESSED; in ImplDrawNativeControl()
709 iState = bChecked ? RBS_CHECKEDDISABLED : RBS_UNCHECKEDDISABLED; in ImplDrawNativeControl()
711 iState = bChecked ? RBS_CHECKEDHOT : RBS_UNCHECKEDHOT; in ImplDrawNativeControl()
713 iState = bChecked ? RBS_CHECKEDNORMAL : RBS_UNCHECKEDNORMAL; in ImplDrawNativeControl()
718 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
727 iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDPRESSED : in ImplDrawNativeControl()
730 iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDDISABLED : in ImplDrawNativeControl()
733 iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDHOT : in ImplDrawNativeControl()
736 iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDNORMAL : in ImplDrawNativeControl()
746 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
753 iState = ETS_DISABLED; in ImplDrawNativeControl()
755 iState = ETS_FOCUSED; in ImplDrawNativeControl()
757 iState = ETS_HOT; in ImplDrawNativeControl()
759 iState = ETS_NORMAL; in ImplDrawNativeControl()
761 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
769 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
776 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
791 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
797 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
820 iState = TILES_DISABLED; in ImplDrawNativeControl()
823 iState = TILES_SELECTED; in ImplDrawNativeControl()
837 iState = TILES_HOT; in ImplDrawNativeControl()
839 iState = TILES_FOCUSED; // may need to draw focus rect in ImplDrawNativeControl()
841 iState = TILES_NORMAL; in ImplDrawNativeControl()
842 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
855 iState = TS_HOT; in ImplDrawNativeControl()
857 iState = TS_PRESSED; in ImplDrawNativeControl()
859 iState = bChecked ? TS_HOTCHECKED : TS_HOT; in ImplDrawNativeControl()
861 iState = bChecked ? TS_CHECKED : TS_NORMAL; in ImplDrawNativeControl()
862 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
879 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
892 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption); in ImplDrawNativeControl()
897 iState = (nState & CTRL_STATE_SELECTED) ? MBI_HOT : MBI_NORMAL; in ImplDrawNativeControl()
899 iState = (nState & CTRL_STATE_SELECTED) ? MBI_DISABLEDHOT : MBI_DISABLED; in ImplDrawNativeControl()
900 return ImplDrawTheme( hTheme, hDC, MENU_BARITEM, iState, rc, aCaption ); in ImplDrawNativeControl()
909 if( ! ImplDrawTheme( hTheme, hDC, PP_BAR, iState, rc, aCaption) ) in ImplDrawNativeControl()
912 …if( vsAPI.GetThemeBackgroundContentRect( hTheme, hDC, PP_BAR, iState, &rc, &aProgressRect) != S_OK… in ImplDrawNativeControl()
923 return ImplDrawTheme( hTheme, hDC, PP_CHUNK, iState, aProgressRect, aCaption ); in ImplDrawNativeControl()
929 iState = (nPart == PART_TRACK_HORZ_AREA) ? TRS_NORMAL : TRVS_NORMAL; in ImplDrawNativeControl()
931 Rectangle aTrackRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() ); in ImplDrawNativeControl()
945 ImplDrawTheme( hTheme, hDC, iPart, iState, aTRect, aCaption ); in ImplDrawNativeControl()
955 iState = (nState & CTRL_STATE_ENABLED) ? TUS_NORMAL : TUS_DISABLED; in ImplDrawNativeControl()
956 return ImplDrawTheme( hTheme, hDC, iPart, iState, aThumbRect, aCaption ); in ImplDrawNativeControl()
969 iState = GLPS_OPENED; in ImplDrawNativeControl()
972 iState = GLPS_CLOSED; in ImplDrawNativeControl()
977 return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption ); in ImplDrawNativeControl()
997 iState = (nState & CTRL_STATE_SELECTED) ? MPI_HOT : MPI_NORMAL; in ImplDrawNativeControl()
999 iState = (nState & CTRL_STATE_SELECTED) ? MPI_DISABLEDHOT : MPI_DISABLED; in ImplDrawNativeControl()
1000 return ImplDrawTheme( hTheme, hDC, MENU_POPUPITEM, iState, rc, aCaption ); in ImplDrawNativeControl()
1018 iState = (nState & CTRL_STATE_ENABLED) ? MCB_NORMAL : MCB_DISABLED; in ImplDrawNativeControl()
1019 … ImplDrawTheme( hTheme, hDC, MENU_POPUPCHECKBACKGROUND, iState, aBGRect, aCaption ); in ImplDrawNativeControl()
1021 … iState = (nState & CTRL_STATE_ENABLED) ? MC_CHECKMARKNORMAL : MC_CHECKMARKDISABLED; in ImplDrawNativeControl()
1023 … iState = (nState & CTRL_STATE_ENABLED) ? MC_BULLETNORMAL : MC_BULLETDISABLED; in ImplDrawNativeControl()
1024 return ImplDrawTheme( hTheme, hDC, MENU_POPUPCHECK, iState, rc, aCaption ); in ImplDrawNativeControl()
1358 int iState = (nPart == PART_THUMB_HORZ) ? TUS_NORMAL : TUVS_NORMAL; in getNativeControlRegion() local
1359 Rectangle aThumbRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() ); in getNativeControlRegion()