Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: System resource information Pin
alex.barylski5-Apr-02 11:36
alex.barylski5-Apr-02 11:36 
Generalstrange behavior of my listen( ) Pin
lucy5-Apr-02 9:02
lucy5-Apr-02 9:02 
GeneralRe: strange behavior of my listen( ) Pin
lucy5-Apr-02 10:05
lucy5-Apr-02 10:05 
GeneralRegister the DLL ... Pin
Hadi Rezaee5-Apr-02 8:50
Hadi Rezaee5-Apr-02 8:50 
GeneralRe: Register the DLL ... Pin
Mazdak5-Apr-02 9:05
Mazdak5-Apr-02 9:05 
GeneralRe: Register the DLL ... Pin
Rickard Andersson205-Apr-02 9:08
Rickard Andersson205-Apr-02 9:08 
GeneralRe: Register the DLL ... Pin
Mazdak5-Apr-02 9:30
Mazdak5-Apr-02 9:30 
QuestionCPropertySheet::OnCancel(): Any way to abort the cancellation? Pin
Robert Mooney5-Apr-02 8:53
Robert Mooney5-Apr-02 8:53 
I'm allowing a user to enter data in a wizard, and I want to confirm their intention if they are to click on Cancel. One would think overriding OnCancel, popping up a message box, and then NOT calling the base class method if the user did not intend to quit would be sufficient to keep the property sheet from closing... but this is not the case. Simply return'ing instead of calling the base class method closes the dialog anyway.

Is there a way to return to the property sheet? I know something similar can be done with CDialog, which is why the property sheet is confusing.

Here is the code:
// Handle the Cancel button
void CPageFieldSelection::OnCancel() 
{
	// Confirm
	int result = MessageBox("Are you sure you want to exit?"...);

	// Only cancel if they clicked YES
	if (result != IDYES)
		return;

	CPropertyPage::OnCancel();
}

The return closes the dialog, as does the CPropertyPage::OnCancel(). OMG | :OMG:

Any help would be appreciated.

- Rob
AnswerRe: CPropertySheet::OnCancel(): Any way to abort the cancellation? Pin
Michael Dunn5-Apr-02 16:27
sitebuilderMichael Dunn5-Apr-02 16:27 
General[ Point distance from line? ] Pin
Xenos5-Apr-02 8:06
Xenos5-Apr-02 8:06 
GeneralRe: [ Point distance from line? ] Pin
Joaquín M López Muñoz5-Apr-02 8:21
Joaquín M López Muñoz5-Apr-02 8:21 
QuestionIs there a way to pass a "HANDLE" from a client's window to a dll in ATL? Pin
Bart-Man5-Apr-02 7:56
Bart-Man5-Apr-02 7:56 
AnswerRe: Is there a way to pass a "HANDLE" from a client's window to a dll in ATL? Pin
Chris Losinger5-Apr-02 8:04
professionalChris Losinger5-Apr-02 8:04 
GeneralRe: Is there a way to pass a "HANDLE" from a client's window to a dll in ATL? Pin
Bart-Man5-Apr-02 8:37
Bart-Man5-Apr-02 8:37 
Generalcompare strings Pin
5-Apr-02 7:25
suss5-Apr-02 7:25 
GeneralRe: compare strings Pin
Ravi Bhavnani5-Apr-02 7:57
professionalRavi Bhavnani5-Apr-02 7:57 
GeneralRe: compare strings Pin
5-Apr-02 8:01
suss5-Apr-02 8:01 
GeneralRe: compare strings Pin
Renjith Ramachandran5-Apr-02 8:35
Renjith Ramachandran5-Apr-02 8:35 
GeneralRe: compare strings Pin
Renjith Ramachandran5-Apr-02 8:31
Renjith Ramachandran5-Apr-02 8:31 
GeneralRe: compare strings Pin
Ravi Bhavnani5-Apr-02 8:35
professionalRavi Bhavnani5-Apr-02 8:35 
GeneralRe: compare strings Pin
5-Apr-02 9:48
suss5-Apr-02 9:48 
QuestionGetting information about system performance ? Pin
Cris5-Apr-02 7:12
Cris5-Apr-02 7:12 
AnswerRe: Getting information about system performance ? Pin
Renjith Ramachandran5-Apr-02 7:29
Renjith Ramachandran5-Apr-02 7:29 
AnswerRe: Getting information about system performance ? Pin
Renjith Ramachandran5-Apr-02 7:59
Renjith Ramachandran5-Apr-02 7:59 
QuestionMFC Dialog and Database? Pin
Aoife5-Apr-02 6:35
Aoife5-Apr-02 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.