OnEndLabelEdit |
Post Reply |
Author | |
playertwo
Newbie Joined: 22 December 2006 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 24 May 2007 at 11:44am |
I override CXTPTaskPanel::OnEndLabelEdit() to ensure that the user isn't assigning a name that already exists. If the name does exist, I raise a message box (AfxMessageBox) to ask the user if he wants to replace the existing item. This always leads to a crash.
I stepped through the function, and I noticed that as soon as I invoke AfxMessageBox(), OnEndLabelEdit() is called again. Two message boxes come up, and, after closing them both, the program crashes. How can I raise a message box from OnEndLabelEdit() and avoid this crash? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |