Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making advance DLL ! Pin
Matt Newman8-May-02 16:57
Matt Newman8-May-02 16:57 
Generalvc++ 6 directories for include, lib etc Pin
John Oliver8-May-02 4:37
John Oliver8-May-02 4:37 
GeneralRe: vc++ 6 directories for include, lib etc Pin
Niklas L8-May-02 5:02
Niklas L8-May-02 5:02 
GeneralRe: vc++ 6 directories for include, lib etc Pin
Brian Delahunty8-May-02 6:05
Brian Delahunty8-May-02 6:05 
GeneralWM_SIZE Question Pin
yellowine8-May-02 4:28
yellowine8-May-02 4:28 
GeneralRe: WM_SIZE Question Pin
Jeremy Falcon8-May-02 4:48
professionalJeremy Falcon8-May-02 4:48 
GeneralRe: WM_SIZE Question Pin
Paul M Watt8-May-02 4:59
mentorPaul M Watt8-May-02 4:59 
GeneralCProperty Sheet or Page problem Pin
8-May-02 4:05
suss8-May-02 4:05 
I'm writing an application which allows the user to set options in a property sheet with a few property page. The problem I'm having is with data validation. For each of the property pages, I've added some data validation when the user click the 'ok' button, i.e MyPropertyPage::OnOk()

The problem I'm having is that although the data validation is done, i.e

if (m_strName == "")
{
AfxMessageBox("Please enter a name!");
return;
}

when the OnOk() function exits from the return statment of the name check, the property sheet is closed?

I've tried commenting out

// CPropertyPage::OnOK();

to stop it called this method from the parent, but it is still called?

What I want is for the property sheet to stay modal, if the data entered is not valid.

Any help would be much appreciated.


Robert


fargo2k@hotmail.com
GeneralRe: CProperty Sheet or Page problem Pin
Prem Kumar8-May-02 8:32
Prem Kumar8-May-02 8:32 
GeneralDesign Question Pin
Tony Fontenot8-May-02 3:58
Tony Fontenot8-May-02 3:58 
GeneralRe: Design Question Pin
Niklas L8-May-02 4:54
Niklas L8-May-02 4:54 
GeneralRe: Design Question Pin
Paul M Watt8-May-02 5:07
mentorPaul M Watt8-May-02 5:07 
GeneralSMTP server Pin
Edilson Vasconcelos de Melo Junior8-May-02 3:12
Edilson Vasconcelos de Melo Junior8-May-02 3:12 
GeneralRe: SMTP server Pin
Nish Nishant8-May-02 3:44
sitebuilderNish Nishant8-May-02 3:44 
GeneralRe: SMTP server Pin
Edilson Vasconcelos de Melo Junior8-May-02 5:38
Edilson Vasconcelos de Melo Junior8-May-02 5:38 
GeneralRe: SMTP server Pin
David Cunningham8-May-02 4:11
cofounderDavid Cunningham8-May-02 4:11 
GeneralRe: SMTP server Pin
Edilson Vasconcelos de Melo Junior8-May-02 5:43
Edilson Vasconcelos de Melo Junior8-May-02 5:43 
QuestionSingle View & Multiple Document Problem? Pin
8-May-02 2:02
suss8-May-02 2:02 
AnswerRe: Single View & Multiple Document Problem? Pin
Jonathan Craig8-May-02 3:32
Jonathan Craig8-May-02 3:32 
GeneralRe: Single View & Multiple Document Problem? Pin
8-May-02 17:48
suss8-May-02 17:48 
GeneralRe: Single View & Multiple Document Problem? Pin
Jonathan Craig9-May-02 5:07
Jonathan Craig9-May-02 5:07 
GeneralDrag and Drop, (getting target info) Pin
8-May-02 1:22
suss8-May-02 1:22 
GeneralCommunicating to devices via RS232 to RS485 converter Pin
Agnihothra8-May-02 1:02
Agnihothra8-May-02 1:02 
GeneralRe: Communicating to devices via RS232 to RS485 converter Pin
Tim Smith8-May-02 2:42
Tim Smith8-May-02 2:42 
QuestionWhy Pointers? Pin
a.a8-May-02 0:58
a.a8-May-02 0:58 

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.