Vivek Kumar
Vivek Kumar

Reputation: 5050

Adding controls on CFrameWnd MFC

How can I add control(like ListCtrl and CButtons) on CFrameWnd?

Thanks

Upvotes: 1

Views: 1313

Answers (2)

JohnCz
JohnCz

Reputation: 1609

CListCtrl is the same as CListView. You can also create button by calling directly button’s Create member or calling Create API passing BUTTON as the name of the class.

If you want to use many controls like in a dialog why not to use CFormView derived class as your view?

Upvotes: 0

GazTheDestroyer
GazTheDestroyer

Reputation: 21261

Your best bet would probably be to create a CDialogBar and stick your controls on that.

Upvotes: 2

Related Questions