Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - OnEndLabelEdit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnEndLabelEdit

 Post Reply Post Reply
Author
Message
playertwo View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2006
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote playertwo Quote  Post ReplyReply Direct Link To This Post Topic: OnEndLabelEdit
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.