Home Component Writing
New Blog Post: Email: Multi-Service

Upgrading from 6.03 to 7.03 - ppParentWnd no more exist????

edited December 2003 in Component Writing
What can I use instead ppParentWnd variable to get parent window for
creating my component.


Slava Vitebski
Monfort Software Engineering Ltd.
E-Mail: slava@monfort.co.il


  • edited December 2003

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

    inherited CreateParams(Params);

    Params.Style := Params.Style and not(WS_CHILD);


    Nard Moseley
    Digital Metaphors

    Best regards,

    Nard Moseley
    Digital Metaphors
This discussion has been closed.