Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with dialog derived from CFileDialog Pin
Catherine Pelham9-Feb-00 11:00
sussCatherine Pelham9-Feb-00 11:00 
GeneralAPI to play MP3 files Pin
Alex8-Feb-00 20:30
Alex8-Feb-00 20:30 
GeneralRE: API to play MP3 files Pin
Sergei18-Feb-00 9:55
Sergei18-Feb-00 9:55 
GeneralRE: API to play MP3 files Pin
shahzad13-Mar-00 5:03
shahzad13-Mar-00 5:03 
GeneralAdding Splitter ctrl to activex Control Pin
ReddyKrishna8-Feb-00 7:41
ReddyKrishna8-Feb-00 7:41 
GeneralCapturing Carriage Return in CEdit Pin
Dave Huff7-Feb-00 12:04
sussDave Huff7-Feb-00 12:04 
GeneralRE: Capturing Carriage Return in CEdit Pin
AT7-Feb-00 13:39
AT7-Feb-00 13:39 
GeneralRE: Capturing Carriage Return in CEdit Pin
Per Praem9-Feb-00 1:19
Per Praem9-Feb-00 1:19 
The following code will convert CR to a TAB for
jumping to the next control and only when the
OK button has focus CR will close the dialog.

void CMyDlg:: OnOK()
{
CWnd *pWnd = GetFocus();
ASSERT (pWnd);
if (IDOK == pWnd ->GetDlgCtrlID())
{
CDialog::OnOK();
}
else
{
NextDlgCtrl();
}
}



==================
The original message was:

How do I capture the carriage return in a simple single line edit box in a dialog so that the default button is not pressed?
GeneralPrinting Condenced text Pin
Peter Zajac7-Feb-00 9:26
Peter Zajac7-Feb-00 9:26 
GeneralRE: Printing Condenced text Pin
Chris Maunder10-Feb-00 4:19
cofounderChris Maunder10-Feb-00 4:19 
GeneralRE: RE: Printing Condenced text Pin
Member 120896510-Feb-00 13:37
Member 120896510-Feb-00 13:37 
GeneralWM_COPYDATA or Shared Data Segment Pin
Ted7-Feb-00 5:50
Ted7-Feb-00 5:50 
QuestionHow do I safely shut down a thread, when I can't send a CEvent? Pin
bbrown4-Feb-00 21:25
bbrown4-Feb-00 21:25 
AnswerRE: How do I safely shut down a thread, when I can't send a CEvent? Pin
Mike Dunn5-Feb-00 7:25
Mike Dunn5-Feb-00 7:25 
AnswerRE: How do I safely shut down a thread, when I can't send a CEvent? Pin
Raghav Gupta8-Feb-00 12:53
Raghav Gupta8-Feb-00 12:53 
GeneralTab control or property sheets Pin
Matt4-Feb-00 12:29
Matt4-Feb-00 12:29 
GeneralGetting GUID from a control Pin
Brad Bruce4-Feb-00 7:44
Brad Bruce4-Feb-00 7:44 
GeneralRE: Getting GUID from a control Pin
Ghazi Wadi16-Feb-00 11:55
sussGhazi Wadi16-Feb-00 11:55 
QuestionHow Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 18:41
apavlenko3-Feb-00 18:41 
AnswerRE: How Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 19:16
apavlenko3-Feb-00 19:16 
Generallock toolbar position after docking Pin
Anonymous3-Feb-00 3:42
suss Anonymous3-Feb-00 3:42 
GeneralRE: lock toolbar position after docking Pin
Cristi Posea4-Feb-00 0:15
Cristi Posea4-Feb-00 0:15 
GeneralRE: lock toolbar position after docking Pin
Jesse Ezell5-Feb-00 19:13
Jesse Ezell5-Feb-00 19:13 
QuestionHow Do I Get/Set Mouse Sensitivity? Pin
Anonymous1-Feb-00 11:05
suss Anonymous1-Feb-00 11:05 
GeneralCreateFileMapping - Open it... Pin
braulio31-Jan-00 22:26
braulio31-Jan-00 22:26 

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.