• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 850
  • Last Modified:

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?
0
polgas
Asked:
polgas
1 Solution
 
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
 
polgasAuthor Commented:
for dan: NO..serious this time dude
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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:
*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
 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now