how can i add buttons and listbox in visual c++ 6.0?
how can i add buttons and listbox in visual c++ 6.0?
The easy way:
In your workspace explorer, select tabpage ResourceView.
Rigth click and choose Insert...
Select a dialog and press OK.
Pick a button from the child control panel and draw a button in your dialogbox.
Pick a listbox and draw the listbox.
-OR-
The hard way:
If you're not working with the resource scripts, and you've already been able to create a simply window, you can create a Listbox or a button on the parent window using the CreateWindow function and use for lpClassName "BUTTON" or "LISTBOX".
Check out the CreateWindow function in the MSDN Library.
Greetings.