force handle creation before showing page contents

git-svn-id: trunk@6541 -
This commit is contained in:
vincents 2005-01-11 13:51:17 +00:00
parent 73ba16e348
commit 4da758ff04

View File

@ -435,9 +435,9 @@ begin
// create handle if not already done, need to show!
if (AIndex >= 0) and (AIndex < ANotebook.PageCount) then
begin
NotebookTabChanged(ANotebook, AIndex);
PageHandle := ANotebook.CustomPage(AIndex).Handle;
SetWindowPos(PageHandle, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW);
NotebookTabChanged(ANotebook, AIndex);
end;
if (OldPageIndex >= 0) and (OldPageIndex<>AIndex)
and (OldPageIndex < ANotebook.PageCount)