Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XP Vertical-style Tabs Pin
Jeremy Falcon3-Jul-02 19:28
professionalJeremy Falcon3-Jul-02 19:28 
GeneralRe: XP Vertical-style Tabs Pin
Larry Antram3-Jul-02 22:01
Larry Antram3-Jul-02 22:01 
GeneralCOM Security problem Please Help Pin
Bill Wilson3-Jul-02 13:23
Bill Wilson3-Jul-02 13:23 
Generalhide MFC modal dialog on startup Pin
Kuniva3-Jul-02 13:05
Kuniva3-Jul-02 13:05 
GeneralRe: hide MFC modal dialog on startup Pin
Bill Wilson3-Jul-02 13:28
Bill Wilson3-Jul-02 13:28 
GeneralRe: hide MFC modal dialog on startup Pin
Nish Nishant3-Jul-02 14:45
sitebuilderNish Nishant3-Jul-02 14:45 
GeneralRe: hide MFC modal dialog on startup Pin
Mazdak3-Jul-02 19:53
Mazdak3-Jul-02 19:53 
General"enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:18
ns3-Jul-02 11:18 
I spawn a modal dialog in am MDI CFormView project. Its a login screen. If I hit enter without any entries or even with, it vanishes!!!As you know the modal dlg form comes with an Ok and Cancel button.

I tried removing the OK button - no go.
I made the OK button not the default button (from properties) - still no luck.

I changed the ID of the OK button to a random name, overrode the ONOK function to be something like:

{
check data in login editboxes

store password in public variable

set int nret

EndDialog(nret)

return
}

return from DoModal() in spawning form and set text in box there to publicly accessible password from CLoginDialog.

This works if I click the okay button.

But if I press "enter" - everything is bypassed!
The login dialog vanishes and no info is transmitted!

Please let me know what I can do about this.
Thanks,
ns


Another issue:

In the initdialog of the CLoginDialog class
m_editbox.SetFocus();

is totally unresponsive!

GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:32
professionalChris Losinger3-Jul-02 11:32 
GeneralRe: "enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:40
ns3-Jul-02 11:40 
GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:43
professionalChris Losinger3-Jul-02 11:43 
GeneralRe: "enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:49
ns3-Jul-02 11:49 
GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:57
professionalChris Losinger3-Jul-02 11:57 
GeneralA million thanks! Pin
ns3-Jul-02 12:00
ns3-Jul-02 12:00 
GeneralRe: "enter" key dismisses modal dialog! Pin
Christopher Lord3-Jul-02 15:17
Christopher Lord3-Jul-02 15:17 
GeneralRe: "enter" key dismisses modal dialog! Pin
Larry Antram3-Jul-02 16:25
Larry Antram3-Jul-02 16:25 
Generalgetting "System Name" and "User name" in windows xp.. Pin
Speedy3-Jul-02 10:38
Speedy3-Jul-02 10:38 
GeneralRe: getting "System Name" and "User name" in windows xp.. Pin
Jason Henderson3-Jul-02 18:05
Jason Henderson3-Jul-02 18:05 
GeneralVisual Studio .NET Installation Pin
Ryan B.3-Jul-02 9:01
Ryan B.3-Jul-02 9:01 
GeneralRe: Visual Studio .NET Installation Pin
Mazdak3-Jul-02 9:06
Mazdak3-Jul-02 9:06 
GeneralRe: Visual Studio .NET Installation Pin
Ranjan Banerji3-Jul-02 9:40
Ranjan Banerji3-Jul-02 9:40 
GeneralRe: Visual Studio .NET Installation Pin
Ryan B.3-Jul-02 9:55
Ryan B.3-Jul-02 9:55 
GeneralC++ questions Pin
3-Jul-02 6:56
suss3-Jul-02 6:56 
GeneralRe: C++ questions Pin
Hans Ruck3-Jul-02 7:47
Hans Ruck3-Jul-02 7:47 
GeneralRe: C++ questions Pin
Alan Chambers3-Jul-02 9:06
Alan Chambers3-Jul-02 9:06 

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.