ADD: DialogAPI - progress bar support #2

This commit is contained in:
Alexander Koblov 2019-11-17 14:52:31 +00:00
commit 759b791f32
3 changed files with 9 additions and 0 deletions

View file

@ -39,6 +39,7 @@
#define DM_SETITEMDATA DM_FIRST+35
#define DM_LISTSET DM_FIRST+36
#define DM_SETPROGRESSVALUE DM_FIRST+37
#define DM_SETPROGRESSSTYLE DM_FIRST+38
/* events messages */
#define DN_FIRST 0x1000

View file

@ -42,6 +42,7 @@ const
DM_SETITEMDATA = DM_FIRST+35;
DM_LISTSET = DM_FIRST+36;
DM_SETPROGRESSVALUE = DM_FIRST+37;
DM_SETPROGRESSSTYLE = DM_FIRST+38;
// events messages
DN_FIRST = $1000;

View file

@ -540,6 +540,13 @@ begin
TProgressBar(Control).Position:= wParam;
end;
end;
DM_SETPROGRESSSTYLE:
begin
if (Control is TProgressBar) then
begin
TProgressBar(Control).Style:= TProgressBarStyle(wParam);
end;
end;
end;
end;