I want to create a Trackbar control into a modal dialog box (using VisualC++) at runtime.
When I put the control into the dialog template in the dialog-editor, everything is ok, but
when I try to create it in the dialog window procedure (WM_INITDIALOG) at runtime,
the returned hwndTB becomes 0 (see my code sniplet below).
I can create buttons or scrollbars at runtime, but cant create a trackbar.
The result, hwndTB=NULL.