mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 12:00:18 +02:00
win32: open picture dialog: workaround lcl bug with autosizing which prevent controls to apply their bounds if parent = nil and parentwnd = 0
git-svn-id: trunk@24021 -
This commit is contained in:
parent
0118bd4b2a
commit
99dce14266
@ -120,7 +120,7 @@ begin
|
||||
DialogRec := POpenFileDialogRec(OpenFileName^.lCustData);
|
||||
AControl := TPreviewFileDialog(DialogRec^.Dialog).PreviewFileControl;
|
||||
// attach our child to the template window
|
||||
SetParent(AControl.Handle, hWnd);
|
||||
AControl.ParentWindow := hWnd;
|
||||
|
||||
GetWindowRect(stc32Handle, ARect);
|
||||
ScreenToClient(hWnd, ARect.TopLeft);
|
||||
|
Loading…
Reference in New Issue
Block a user