Mega Code Archive

 
Categories / Delphi / Examples
 

When is my controls window handle created

A control's window handle is created by the CreateWnd method. If you have processing that needs to be performed after the window handle is created, then you can override CreateWnd and do procedure TMyClass.CreateWnd; begin // Don't forget or you'll never get a window handle. inherited CreateWnd; // Your processing goes here. end;