Click here to Skip to main content
15,115,261 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 18:19
MemberMember 21198442-Nov-12 18:19 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:26
MemberSanthosh G_2-Nov-12 18:26 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 18:33
MemberMember 21198442-Nov-12 18:33 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 19:01
MemberSanthosh G_2-Nov-12 19:01 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 19:34
MemberMember 21198442-Nov-12 19:34 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 19:43
MemberSanthosh G_2-Nov-12 19:43 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 21:02
MemberMember 21198442-Nov-12 21:02 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 21:27
MemberSanthosh G_2-Nov-12 21:27 
If you can override PreTranslateMessage() in your Dialog class, you can track Enter press from PreTranslateMessage().
C#
BOOL CRetValTestDlg::PreTranslateMessage(MSG* pMsg)
{
    if( pMsg->message == WM_KEYDOWN &&
        pMsg->wParam == VK_RETURN &&
        pMsg->hwnd == GetDlgItem( IDC_TX_INPUT )->m_hWnd)
    {
        // When pressing Enter key in IDC_TX_INPUT edit box, you will get control here.
        // Return FALSE ensures Dialog will not process this Enter KeyPress

        // return FALSE;
    }
    return CDialog::PreTranslateMessage(pMsg);
}

GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 22:05
MemberMember 21198442-Nov-12 22:05 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 22:41
MemberSanthosh G_2-Nov-12 22:41 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 0:24
MemberMember 21198443-Nov-12 0:24 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 2:56
mveRichard MacCutchan3-Nov-12 2:56 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 5:40
MemberMember 21198443-Nov-12 5:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 7:07
mveRichard MacCutchan3-Nov-12 7:07 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 8:12
MemberMember 21198443-Nov-12 8:12 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 9:03
mveRichard MacCutchan3-Nov-12 9:03 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 16:40
MemberMember 21198443-Nov-12 16:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 22:23
mveRichard MacCutchan3-Nov-12 22:23 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 23:59
MemberMember 21198443-Nov-12 23:59 
SuggestionRe: how to return value after user input Pin
David Crow4-Nov-12 17:28
MemberDavid Crow4-Nov-12 17:28 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 22:57
MemberMember 93537761-Nov-12 22:57 
AnswerRe: problem with sprintf_s() on win 7 Pin
Santhosh G_1-Nov-12 23:34
MemberSanthosh G_1-Nov-12 23:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 17:46
MemberMember 93537764-Nov-12 17:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
Santhosh G_4-Nov-12 18:08
MemberSanthosh G_4-Nov-12 18:08 
AnswerRe: problem with sprintf_s() on win 7 Pin
CPallini1-Nov-12 23:48
mveCPallini1-Nov-12 23:48 

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.