mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 18:55:56 +02:00
destroy overlay window, when destroying the owner
git-svn-id: trunk@6265 -
This commit is contained in:
parent
74bc6baac5
commit
dde42bd1c3
@ -616,6 +616,8 @@ Begin
|
|||||||
DestroySpinEditBuddy(TCustomSpinEdit(lWinControl));
|
DestroySpinEditBuddy(TCustomSpinEdit(lWinControl));
|
||||||
if lWinControl is TCustomComboBox then
|
if lWinControl is TCustomComboBox then
|
||||||
DisposeComboEditWindowInfo(TCustomComboBox(lWinControl));
|
DisposeComboEditWindowInfo(TCustomComboBox(lWinControl));
|
||||||
|
if WindowInfo^.Overlay<>HWND(nil) then
|
||||||
|
Windows.DestroyWindow(WindowInfo^.Overlay);
|
||||||
EnumProps(Window, @PropEnumProc);
|
EnumProps(Window, @PropEnumProc);
|
||||||
LMessage.Msg := LM_DESTROY;
|
LMessage.Msg := LM_DESTROY;
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
@ -1321,6 +1323,11 @@ begin
|
|||||||
// parent of overlay is the form
|
// parent of overlay is the form
|
||||||
Windows.PostMessage(Windows.GetParent(Window), Msg, WParam, LParam);
|
Windows.PostMessage(Windows.GetParent(Window), Msg, WParam, LParam);
|
||||||
end;
|
end;
|
||||||
|
WM_NCDESTROY:
|
||||||
|
begin
|
||||||
|
// free our own data associated with window
|
||||||
|
DisposeWindowInfo(Window)
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
Result := CallDefaultWindowProc(Window, Msg, WParam, LParam);
|
Result := CallDefaultWindowProc(Window, Msg, WParam, LParam);
|
||||||
end;
|
end;
|
||||||
@ -1466,6 +1473,9 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.166 2004/11/18 14:58:06 vincents
|
||||||
|
destroy overlay window, when destroying the owner
|
||||||
|
|
||||||
Revision 1.165 2004/11/17 23:06:29 vincents
|
Revision 1.165 2004/11/17 23:06:29 vincents
|
||||||
centralized dispose windowinfo
|
centralized dispose windowinfo
|
||||||
removed debug info
|
removed debug info
|
||||||
|
Loading…
Reference in New Issue
Block a user