Solved

EditLabel on CListCtrl

Posted on 2001-08-20
9
798 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
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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 78
ShiftLeft challenge 21 76
sumHeights2  challenge 7 87
how to split multiple lines delimiter : 8 78
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now