Re: Add a CListCtrl in my CFormView
- From: Ian Semmel <isemmelNOJUNK@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 02 May 2006 06:50:18 +1000
What is 0x58658 ?
Anyway, you should have something like
GetDlgItem ( IDC_TOKEN_LIST) -> GetWindowRect ( &rect)
ScreenToClient ( &rect)
m_TokenList.Create(dwStyle, rect, this, 0x58658? )
Vincent RICHOMME wrote:
Hi,.
I have a CFormView in which I have put a CStatic in the resource form.
In my code I would like to replace the CStatic by a ClistCtrl so I am trying this :
void CGeneralView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
// Get Rect of my CStatic
CRect rect; GetDlgItem(IDC_TOKEN_LIST)->GetClientRect(&rect);
DWORD dwStyle = LVS_ICON;
BOOL bRet = m_TokenList.Create(dwStyle, CRect(0,0,0,0), this, 0x58658);
m_TokenList.ShowWindow(TRUE);
}
The problem is the ClistCtrl is not the right place. I suppose it's because my form view is resized. So does it mean I cannot create my control in OnInitialUpdate method ?
Or Maybe I need to catch the OnSize event and inform my control ???
- References:
- Add a CListCtrl in my CFormView
- From: Vincent RICHOMME
- Add a CListCtrl in my CFormView
- Prev by Date: Re: Closing application impossible
- Next by Date: Re: Can't copy the background of my simple control
- Previous by thread: Add a CListCtrl in my CFormView
- Next by thread: Re: Add a CListCtrl in my CFormView
- Index(es):
Relevant Pages
|