Browse Source

* Add TDispatchMessage

Michaël Van Canneyt 1 year ago
parent
commit
4af99236b0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/inc/objpash.inc

+ 6 - 0
rtl/inc/objpash.inc

@@ -226,6 +226,12 @@
        RTLString = shortstring;
        RTLString = shortstring;
 
 
        {$endif FPC_HAS_FEATURE_ANSISTRINGS}
        {$endif FPC_HAS_FEATURE_ANSISTRINGS}
+       
+       // Dispatch needs a DWord as the first 4 bytes in its untyped parameter.
+       // Note that this is different from Delphi, which uses only a word.
+       TDispatchMessage = record
+         MsgID: DWord;
+       end;  
 
 
        TObject = class
        TObject = class
        protected
        protected