EditLabel on CListCtrl

I have a windows explorer kind of application.

When i try to rename a read-only file by editing the label and then click on the other part of listctrl, a confirmation box is displayed.

Clicking yes button closes the dialog but my mouse cursor is locked. How could i remove it?
polgasAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
peterchen092700Connect With a Mentor Commented:
*g* I almost was afraid of that answer...

put a breakpoint on where the message box is opened, look at the call stack window where the call comes from.

When you click "elsewhere", you get an TVN_ENDLABELEDIT message as well, but the pszText member of the TVITEM structure is NULL (indicating a cancel). I guess your problem is there...


Peter
0
 
Meir RivkinFull stack Software EngineerCommented:
try EndWaitCursor();
0
 
DanRollinsCommented:
Is it your own confirmation box?  Locked in what way?  Do you plan to insult me by giving me a C if I answer your question?

-- Dan
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
polgasAuthor Commented:
for dan: NO..serious this time dude
0
 
polgasAuthor Commented:
clarification: the confirmation box is similar with the one displayed in windows explorer "Are you sure you..." The mouse is locked the same way as in you press down left mouse button and drag to other location within the list control. there is this square image that allows multiple selection using mouse cursor.
0
 
peterchen092700Commented:
repeating Dan's Question: is this your own message box?
0
 
polgasAuthor Commented:
yes
0
 
peterchen092700Commented:
...so it could be a good idea to post your TVN_ENDLABELEDIT handler's code...
0
 
peterchen092700Commented:
...so it could be a good idea to post your TVN_ENDLABELEDIT handler's code...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.