daverkennedy
Programmer
Hi could anyone help me here?
I have a SDI ListView app that allows the user to add buttons in the listview... the buttons will also overlap a couple of rows.
I use the something like the code below to show the button in a given cell...
The problem is when the list view is scrolled the button will move up and down depending on the users scroll movements.
I need to lock the button in place so that it maintains the original position... any ideas?
Thanks in advance.
I have a SDI ListView app that allows the user to add buttons in the listview... the buttons will also overlap a couple of rows.
I use the something like the code below to show the button in a given cell...
Code:
CButton* p_button;
CRect rcNew;
theCtrl.GetItemRect(StartRow,&rcNew,LVIR_BOUNDS);
pButton->Create(strTitle, BS_FLAT, rcNew, this, m_nIDCount++);
pButton->ShowWindow(SW_SHOWNORMAL);
The problem is when the list view is scrolled the button will move up and down depending on the users scroll movements.
I need to lock the button in place so that it maintains the original position... any ideas?
Thanks in advance.