CListBox Header
-
Hi, I am working in MFC application. I faced one problem in my application. This application is alread developed. It has CAlarm class it inherited CListbox like
class CAlarmList : public CListBox
it displays value through DrawItem
void CAlarmList::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
// TODO: Add your code to draw the specified itemint iListItem = lpDIS->itemID; CDC lDC; lDC.Attach(lpDIS->hDC);
It working fine but not have header. but client looking header but CListbox not have header control how to add header please help me.
-
Hi, I am working in MFC application. I faced one problem in my application. This application is alread developed. It has CAlarm class it inherited CListbox like
class CAlarmList : public CListBox
it displays value through DrawItem
void CAlarmList::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
// TODO: Add your code to draw the specified itemint iListItem = lpDIS->itemID; CDC lDC; lDC.Attach(lpDIS->hDC);
It working fine but not have header. but client looking header but CListbox not have header control how to add header please help me.
Might you try changing to a CListCtrl (that has a built in header)? or maybe add a CHeaderCtrl object just above the list box?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst