<< Return to Main Index

< Return to Class Index

CGXDTabWnd::AttachWnd

virtual CWnd* AttachWnd(CWnd* pWnd, LPCTSTR szLabel);

pWnd

A pointer to the window to be attached to this tab window.

szLabel

A pointer to a string used as the name in the tab for this window.

Return Value

A pointer to the same as the passed window.

Remarks

Call this functin to add a new window to this tab window. There are two methods to add a new window to the tab window. The easiest method is to call CreateView of this class, the other is use this method. This message allows you to add a new tab window in two steps, i.e. first create the window and do some setting and then add the window to this tab window.

See Also

CGXDTabWnd::CreateView

CGXDTabWnd

Class Overview | Class Members