Solved

EditLabel on CListCtrl

Posted on 2001-08-20
9
803 Views
Last Modified: 2013-11-20
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
Comment
Question by:polgas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 6405650
try EndWaitCursor();
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6405693
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
 

Author Comment

by:polgas
ID: 6405737
for dan: NO..serious this time dude
0
Technology Partners: 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!

 

Author Comment

by:polgas
ID: 6405760
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
 
LVL 7

Expert Comment

by:peterchen092700
ID: 6405899
repeating Dan's Question: is this your own message box?
0
 

Author Comment

by:polgas
ID: 6405904
yes
0
 
LVL 7

Accepted Solution

by:
peterchen092700 earned 200 total points
ID: 6405982
*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
 
LVL 7

Expert Comment

by:peterchen092700
ID: 6408525
...so it could be a good idea to post your TVN_ENDLABELEDIT handler's code...
0
 
LVL 7

Expert Comment

by:peterchen092700
ID: 6408526
...so it could be a good idea to post your TVN_ENDLABELEDIT handler's code...
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
deburging in oracle form 12 112
Expand to include initial dialog with two choices. 9 86
if loop in java 3 163
VBA "SendKeys" Syntax for Multiple Keystrokes 7 125
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question