mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-03 07:17:27 +01:00
win32 interface: destroy extra parent panel for groupbox in a groupbox on themed winxp (bug #8096)
git-svn-id: trunk@10435 -
This commit is contained in:
parent
9824f1f124
commit
c71fe1b942
@ -287,7 +287,7 @@ Var
|
||||
Result := TObject(MenuInfo.dwItemData);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
procedure SendPaintMessage;
|
||||
var
|
||||
DC: HDC;
|
||||
@ -2058,6 +2058,9 @@ begin
|
||||
|
||||
WM_NCDESTROY:
|
||||
begin
|
||||
// free extra parent window for inner groupbox (if used)
|
||||
if WindowInfo^.ParentPanel<>HWND(nil) then
|
||||
Windows.DestroyWindow(WindowInfo^.ParentPanel);
|
||||
// free our own data associated with window
|
||||
if DisposeWindowInfo(Window) then
|
||||
WindowInfo := nil;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user