mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 09:09:17 +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
|
private
|
||||||
protected
|
protected
|
||||||
public
|
public
|
||||||
|
class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TWin32WSCalculatorDialog }
|
{ TWin32WSCalculatorDialog }
|
||||||
@ -209,6 +210,15 @@ begin
|
|||||||
Result := Params.Window;
|
Result := Params.Window;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{ TWin32WSSavePictureDialog }
|
||||||
|
|
||||||
|
class function TWin32WSSavePictureDialog.CreateHandle(
|
||||||
|
const ACommonDialog: TCommonDialog): THandle;
|
||||||
|
begin
|
||||||
|
Result := inherited CreateHandle(ACommonDialog);
|
||||||
|
AddPreviewControl(ACommonDialog, LPOPENFILENAME(Result));
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user