@@ -35,17 +35,8 @@ TPropVariantEx = record
35
35
36
36
{ $REGION 'UIRibbonKeydef.h'}
37
37
type
38
- TUIPropertyKey = packed record
39
- public
40
- FmtId: TGuid;
41
- PId: DWord;
42
- public
43
- class operator Equal(const A, B: TUIPropertyKey): Boolean;
44
- class operator Equal(const A: TUIPropertyKey; const B: TPropertyKey): Boolean;
45
- class operator NotEqual(const A, B: TUIPropertyKey): Boolean;
46
- class operator NotEqual(const A: TUIPropertyKey; const B: TPropertyKey): Boolean;
47
- end ;
48
- PUIPropertyKey = ^TUIPropertyKey;
38
+ TUIPropertyKey = TPropertyKey;
39
+ PUIPropertyKey = PPropertyKey;
49
40
50
41
(* #define DEFINE_UIPROPERTYKEY(name, type, index) EXTERN_C \\
51
42
const PROPERTYKEY DECLSPEC_SELECTANY name = { { 0x00000000 + index, 0x7363, \\
@@ -659,32 +650,6 @@ implementation
659
650
SysUtils,
660
651
WinApiEx;
661
652
662
- { $REGION 'UIRibbonKeydef.h'}
663
-
664
- { TUIPropertyKey }
665
-
666
- class operator TUIPropertyKey.Equal(const A, B: TUIPropertyKey): Boolean;
667
- begin
668
- Result := CompareMem(@A, @B, SizeOf(TUIPropertyKey));
669
- end ;
670
-
671
- class operator TUIPropertyKey.Equal(const A: TUIPropertyKey;
672
- const B: TPropertyKey): Boolean;
673
- begin
674
- Result := CompareMem(@A, @B, SizeOf(TUIPropertyKey));
675
- end ;
676
-
677
- class operator TUIPropertyKey.NotEqual(const A, B: TUIPropertyKey): Boolean;
678
- begin
679
- Result := not CompareMem(@A, @B, SizeOf(TUIPropertyKey));
680
- end ;
681
-
682
- class operator TUIPropertyKey.NotEqual(const A: TUIPropertyKey;
683
- const B: TPropertyKey): Boolean;
684
- begin
685
- Result := not CompareMem(@A, @B, SizeOf(TUIPropertyKey));
686
- end ;
687
- { $ENDREGION 'UIRibbonKeydef.h'}
688
653
689
654
{ $REGION 'UIRibbon.h/idl'}
690
655
function UIHsb (const Hue, Saturation, Brightness: Byte): TUIHsbColor; inline;
@@ -883,7 +848,5 @@ function UIPropertyToIUnknownArrayAlloc(const Key: TUIPropertyKey; const PropVar
883
848
end ;
884
849
{ $ENDREGION 'UIRibbonPropertyHelpers.h'}
885
850
886
- initialization
887
- Assert(SizeOf(TUIPropertyKey) = SizeOf(TPropertyKey));
888
851
889
852
end .
0 commit comments