Upgrading from 6.03 to 7.03 - ppParentWnd no more exist????
What can I use instead ppParentWnd variable to get parent window for
creating my component.
Regards,
--
Slava Vitebski
Monfort Software Engineering Ltd.
E-Mail: slava@monfort.co.il
creating my component.
Regards,
--
Slava Vitebski
Monfort Software Engineering Ltd.
E-Mail: slava@monfort.co.il
This discussion has been closed.
Comments
RB 7.x contains modifications to ensure thread-safety. Eliminating the use
of ppParentWnd was necessary for thread-safety.
If you have a windowed control that you need to use, create a descendant
class that overrides the CreateParams method and add the code shown below.
You can then create an instance of the descendant class and leave the Parent
property unassigned.
procedure TmyWinControlDescendant.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.Style := Params.Style and not(WS_CHILD);
end;
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com