|
-
March 31st, 1999, 04:39 PM
#1
Q: CListCtrl and editing subitems
I've got the code implemented to edit subitems in a CListCtrl, however
the edit box is giving me some problems. I am handling the LVN_BEGINLABELEDIT
message and LVN_ENDLABELEDIT message. In the LVN_BEGINLABELEDIT message I
figure out where the user clicked and then get the sub item information and
load it into the CEdit control which I have subclassed:
HWND hWnd=(HWND)SendMessage(LVM_GETEDITCONTROL);
ASSERT(hWnd!=NULL);
VERIFY( m_label_edit.SubclassWindow( hWnd ) );
I move the CEdit box over the appropriate area in the OnEraseBackground handler.
I have not created my own CEdit derived class, I just have a member variable
CEdit. My problem is when I go to type info into the edit box a "ghost" edit
box appears over the first column on the same row. It only appears when I'm
typing. The ghost appears sometime before OnEraseBackGround is called from
what I can tell, but that's about all I've been able to figure out.
Anyone have any clues as to what might be happening under the covers to cause
this?
Thanks in advance,
Dan Ramage
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|