Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCStringArray and its size Pin
ns3-Oct-02 9:21
ns3-Oct-02 9:21 
GeneralRe: CStringArray and its size Pin
Shog93-Oct-02 9:22
sitebuilderShog93-Oct-02 9:22 
GeneralThank you! Pin
ns3-Oct-02 9:31
ns3-Oct-02 9:31 
GeneralHiding Destop Icons Pin
Dean Michaud3-Oct-02 8:37
Dean Michaud3-Oct-02 8:37 
GeneralRe: Hiding Destop Icons Pin
Shog93-Oct-02 9:20
sitebuilderShog93-Oct-02 9:20 
Generalseeking activeX control/library fro vt100 terminal emulation Pin
michael thomas3-Oct-02 8:28
michael thomas3-Oct-02 8:28 
GeneralRe: seeking activeX control/library fro vt100 terminal emulation Pin
Anonymous3-Oct-02 9:00
Anonymous3-Oct-02 9:00 
GeneralSuppressing Next button on wizard Pin
Lilian Chan-Grant3-Oct-02 8:11
Lilian Chan-Grant3-Oct-02 8:11 
I hope I can explain this without too much confusion.

Let's say you have an edit box in a wizard. You enter data outside the valid range. If you click Enter instead of Tab, you get an error message. If you click on Enter to dismiss the error, it acts like an Enter and goes onto the Next screen. The original code looked like this:

// Check the validity of the value
l_lVal = atof((_bstr_t)InBurstLengthStr);

if((l_lVal > m_dMaxBurstLength) || (l_lVal < m_dMinBurstLength))
{
// If the entered value is out of range then throw an error
::MessageBox(m_hWnd,
L"The Burst Length Entered is not Within the Specified Range!",
L"Data Entry Error",MB_OK | MB_ICONEXCLAMATION);

BurstLengthEdit.SetFocus();
return 0;
}

I changed it so that I got the click. I checked if the click was IDOK, called the setfocus, but that didn't help. I saw where someone else made the enter key act like a tab key if they were in an edit field with a hook. I couldn't get that to work. It just wanted to act like a Next, which was weird because it didn't appear to be the default button. Please HELP me if you can!

Thanks,
Lilian
GeneralRe: Suppressing Next button on wizard Pin
Tomasz Sowinski3-Oct-02 8:19
Tomasz Sowinski3-Oct-02 8:19 
GeneralRe: Suppressing Next button on wizard Pin
Lilian Chan-Grant3-Oct-02 8:27
Lilian Chan-Grant3-Oct-02 8:27 
GeneralRe: Suppressing Next button on wizard Pin
Tomasz Sowinski3-Oct-02 8:36
Tomasz Sowinski3-Oct-02 8:36 
GeneralRe: Suppressing Next button on wizard Pin
Lilian Chan-Grant3-Oct-02 9:15
Lilian Chan-Grant3-Oct-02 9:15 
Generalscreen size Pin
Kash3-Oct-02 6:33
Kash3-Oct-02 6:33 
GeneralRe: screen size Pin
Tomasz Sowinski3-Oct-02 6:50
Tomasz Sowinski3-Oct-02 6:50 
GeneralVisible Client Area question Pin
Steve The Plant3-Oct-02 6:12
Steve The Plant3-Oct-02 6:12 
GeneralRe: Visible Client Area question Pin
Tomasz Sowinski3-Oct-02 6:26
Tomasz Sowinski3-Oct-02 6:26 
GeneralRe: Visible Client Area question Pin
JT Anderson3-Oct-02 10:53
JT Anderson3-Oct-02 10:53 
QuestionHow do I use a CSortListCtrl in ListView? Pin
Pole3-Oct-02 5:56
Pole3-Oct-02 5:56 
Generalcrash on exit Pin
ns3-Oct-02 5:44
ns3-Oct-02 5:44 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 5:49
Tomasz Sowinski3-Oct-02 5:49 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:10
ns3-Oct-02 6:10 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:13
ns3-Oct-02 6:13 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 6:11
Tomasz Sowinski3-Oct-02 6:11 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:28
ns3-Oct-02 6:28 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 6:35
Tomasz Sowinski3-Oct-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.