In both cases, you use a standard list box and make is a child control of the toolbar control. In both cases, it can be based, for example, on Windows API
SetParent
:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633541%28v=vs.85%29.aspx[
^].
There is a lot more related to it: how to define window class for a window object, create a window and obtain its handle, etc. You really need to learn now Windows API works.
—SA