You can search MSDN for "Window Styles" (link) to learn more about how to set the styles of an embedded window. Here is the list of options I use when calling the SetWindowLong( ) API (link):
When you call the SetWindowLong( hWnd, nIndex, dwNewLong ) API, you will add the above values together for the look you want. They are passed as the dwNewLong value, and the nIndex is set to -16 (GWL_STYLE... aka new Window Style). I personally prefer to use WS_TABSTOP + WS_VISIBLE + WS_CHILD. WS_VISIBLE if nothing else, just to ensure it's visible. WS_TABSTOP, just to ensure tab-stopping. And WS_CHILD to get rid of the menus. However, if you need the menus, then do not add in WS_CHILD.Code:Public Enum e_WindowStyle WS_BORDER = &H800000 ' thin border WS_CAPTION = &HC00000 ' has title bar WS_CHILD = &H40000000 ' child window style... does not allow menu WS_DISABLED = &H8000000 ' disabled WS_HSCROLL = &H100000 ' has horizontal scroll WS_VSCROLL = &H200000 ' has vertical scroll WS_THICKFRAME = &H40000 ' thick frame WS_VISIBLE = &H10000000 ' initially visible WS_TABSTOP = &H10000 ' tabstop End Enum
Let me know if you're interested in seeing more code/objects on the topic.