CButton & CView
I created a project using the MFC wizard and I want to place a CButton right on the CView itself. I'm guessing it's possible, but when I put the following code in the PreCreateWindow function (or the OnCreate), it doesn't work:
(in the Class defn):
CButton* button;
(in the Ctor)
button = new CButton();
(in PreCreateWindow)
button->Create(_T("button"),...the different window styles...,
CRect(0,0,30,30),this,1)
Nothing comes up. What am I doing wrong?
[534 byte] By [
paulj1999] at [2007-11-17 22:39:11]

# 2 Re: CButton & CView
I had the same problem in a CFrameView with an ComboBox I did
void CSelectOutput::OnInitialUpdate()
{
...
m_combo->Create(CBS_DROPDOWN ,rect,this,1);
m_combo->ShowWindow(SW_SHOW);
...
}
paxer at 2007-11-10 8:42:42 >
