?
Solved

EditLabel on CListCtrl

Posted on 2001-08-20
9
Medium Priority
?
818 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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

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 800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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