[fpc-devel] Adding constants to defines.inc (windows)

Giulio Bernardi ugilio at hotmail.com
Sun May 21 23:34:39 CEST 2006


Hi,
I was playing around with lazarus and I found that solution to a bug (6950) 
is trivial.
But it needs a constant (SPI_GETFLATMENU) that is not in 
rtl/win/wininc/defines.inc
(or rtl/win32/wininc/defines.inc for fpc 2.0.x).
Is it ok if I send a patch to add all SPI* constants (taken from latest 
winuser.h) to defines.inc?
I see that constants are ordered alphabetically. Would you like them ordered 
this way or
following MS order (by constant value)?.
Also, there are win2000/me or higher constants and winxp or higher 
constants.
Should they be merged or left separate from the others?
I mean, something like:

..
     SPI_SETWORKAREA = 47;
{ Windows Me/2000 and higher }
     SPI_GETACTIVEWINDOWTRACKING = 4096;
..
{ Windows XP and higher }
     SPI_GETBLOCKSENDINPUTRESETS = 4134;
..

bye
Giulio 



More information about the fpc-devel mailing list