mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 11:09:32 +02:00
win32: add preview control to the savePictureDialog
git-svn-id: trunk@16874 -
This commit is contained in:
parent
f5dd112266
commit
677ae24396
@ -74,6 +74,7 @@ type
|
||||
private
|
||||
protected
|
||||
public
|
||||
class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override;
|
||||
end;
|
||||
|
||||
{ TWin32WSCalculatorDialog }
|
||||
@ -209,6 +210,15 @@ begin
|
||||
Result := Params.Window;
|
||||
end;
|
||||
|
||||
{ TWin32WSSavePictureDialog }
|
||||
|
||||
class function TWin32WSSavePictureDialog.CreateHandle(
|
||||
const ACommonDialog: TCommonDialog): THandle;
|
||||
begin
|
||||
Result := inherited CreateHandle(ACommonDialog);
|
||||
AddPreviewControl(ACommonDialog, LPOPENFILENAME(Result));
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user