win32: create page handle when it is added to the pagecontrol (solves bug #0012434)

git-svn-id: trunk@18214 -
This commit is contained in:
paul 2009-01-08 18:42:49 +00:00
parent 69bd358a27
commit 3939054ef3

View File

@ -429,6 +429,11 @@ var
begin
with ANotebook do
begin
// other widgetsets allocates handles because they really need this
// but on windows page handle is differ from tab and thus allocation can be
// postponed, but this cause problems with event handling like bug #0012434
// so to overcome such problems we need to allocate this handle
AChild.HandleNeeded;
if ShowTabs then
begin
TCI.Mask := TCIF_TEXT or TCIF_PARAM or TCIF_IMAGE;