View Issue Details

IDProjectCategoryView StatusLast Update
0035048FPCCompilerpublic2019-02-09 12:11
Reporter440bx Assigned ToMarco van de Voort  
Status resolvedResolutionfixed 
Product Version3.0.4 
Fixed in Version3.3.1 
Summary0035048: The definition of user32.dll's FlashWindowEx and related structures and constants is missing.
DescriptionThe definitions should be along the lines of:

  FLASHWINFO = record
    Size : UINT;
    Wnd : HWND;
    Flags : DWORD;
    Count : UINT;
    TimeOut : DWORD;

  FLASHW_ALL = $3; // Flash both the window caption and
                         // taskbar button.

  FLASHW_CAPTION = $1; // Flash the window caption.

  FLASHW_STOP = $0; // Stop flashing.

  FLASHW_TIMER = $4; // Flash continuously, until the FLASHW_STOP
                         // flag is set.

  FLASHW_TIMERNOFG = $C; // Flash continuously until the window comes
                         // to the foreground.

  FLASHW_TRAY = $2; // Flash the taskbar button

NOTE: the FLASHWINFO field names shown above are NOT exactly as they appear in the C structure, the Hungarian prefix is absent.
TagsNo tags attached.
Fixed in Revision41262
Attached Files



2019-02-09 11:00

reporter   ~0113973

Forgot to include the definition of the function in the original submission. The definition is:

function FlashWindowEx(var FlashInfo : FLASHWINFO)
         : BOOL; stdcall; external user32;

Marco van de Voort

2019-02-09 12:11

manager   ~0113976

Added, but styled like the rest of the headers:

- fieldnames as per MSDN (there are exceptions, but usually for Delphi compatibility of popular structures or historical)
- parameters pointer, not var or const.
- add "name" clause to the declaration. (probably not necessary anymore, but the rest of the declarations have it)

Issue History

Date Modified Username Field Change
2019-02-09 10:57 440bx New Issue
2019-02-09 11:00 440bx Note Added: 0113973
2019-02-09 12:11 Marco van de Voort Fixed in Revision => 41262
2019-02-09 12:11 Marco van de Voort Note Added: 0113976
2019-02-09 12:11 Marco van de Voort Status new => resolved
2019-02-09 12:11 Marco van de Voort Fixed in Version => 3.3.1
2019-02-09 12:11 Marco van de Voort Resolution open => fixed
2019-02-09 12:11 Marco van de Voort Assigned To => Marco van de Voort