C++Builder: How to dynamically create a control using (HWND ParentWindow) constructor?
Posted on 2000-03-09
The documentation says that the ParentWindow constructor is used when the control, say a TButton, is parented by a non-VCL window.
What I really wanna do is to put a TButton on a MS Visuall C++ CDialog.
But even when I try to dynamically create a TButton on my TForm within C++Builder using (HWD ParentWindow), I cannot get the button to show.
I know that normally we have to set the parent for the control for it to show. But when using ParentWindow, what do I need to do?
Thanks for a quick answer.