Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VC++6 Dialog Box problem

Posted on 2000-03-03
4
Medium Priority
?
206 Views
Last Modified: 2010-04-02
Umm, i created a Dialog based application, however, the main dialog box closes by itself whenever i press ESC or ENTER, is there any way to stop that?!
Thanks
0
Comment
Question by:narcotic030200
[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
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
scooter1 earned 100 total points
ID: 2582325
Handle the OK and Cancel buttons with a blank:

void CStopDlg::OnOK()
{
}

void CStopDlg::OnCancel()
{
}

This will not allow the dialog to be closed so you can create another button for that and pass CDialog::OnOK() or change the name of OK or Cancel and pass CDialog::OnOK()

Any questions let me know.


0
 
LVL 1

Author Comment

by:narcotic030200
ID: 2582453
Yes i found that out about 5 minutes after i posted the message, but i didn't know how to delete the question, thanks anyways...
0
 

Expert Comment

by:scooter1
ID: 2582467
Oh well I owe you one then. :o)
0
 
LVL 1

Author Comment

by:narcotic030200
ID: 2582471
:) no prob
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

704 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