Help me /prog/. How do I put controls on my form? All I've found on the *net is empty forms, no indication as to how I populate it.
Name:
Anonymous2007-01-20 20:13
By form are you talking about just a blank/empty window that you want to fill with controls by API calls only? If not then just ignore this post.
If you already have a blank window with a registered class then you can create windows inside of that with CreateWindowEx() and specify a class name such as "Button" or "Edit". If you don't have a window already, then you probably need to RegisterClassEx() with a filled out WNDCLASSEX struct then create the window with the same class name used to register. Then you can create the individual controls on the main window with the CreateWindowEx() calls.