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:
vincents 2007-01-12 21:32:24 +00:00
parent 9824f1f124
commit c71fe1b942

View File

@ -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;