Click here to Skip to main content
15,438,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:19
MemberMember 21198442-Nov-12 17:19 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 17:26
MemberSanthosh G_2-Nov-12 17:26 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:33
MemberMember 21198442-Nov-12 17:33 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:01
MemberSanthosh G_2-Nov-12 18:01 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 18:34
MemberMember 21198442-Nov-12 18:34 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:43
MemberSanthosh G_2-Nov-12 18:43 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 20:02
MemberMember 21198442-Nov-12 20:02 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 20:27
MemberSanthosh G_2-Nov-12 20: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 21:05
MemberMember 21198442-Nov-12 21:05 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 21:41
MemberSanthosh G_2-Nov-12 21:41 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 23:24
MemberMember 21198442-Nov-12 23:24 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 1:56
mveRichard MacCutchan3-Nov-12 1:56 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 4:40
MemberMember 21198443-Nov-12 4:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 6:07
mveRichard MacCutchan3-Nov-12 6:07 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 7:12
MemberMember 21198443-Nov-12 7:12 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 8:03
mveRichard MacCutchan3-Nov-12 8:03 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 15:40
MemberMember 21198443-Nov-12 15:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 21:23
mveRichard MacCutchan3-Nov-12 21:23 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 22:59
MemberMember 21198443-Nov-12 22:59 
SuggestionRe: how to return value after user input Pin
David Crow4-Nov-12 16:28
MemberDavid Crow4-Nov-12 16:28 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 21:57
MemberMember 93537761-Nov-12 21:57 
AnswerRe: problem with sprintf_s() on win 7 Pin
Santhosh G_1-Nov-12 22:34
MemberSanthosh G_1-Nov-12 22:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 16:46
MemberMember 93537764-Nov-12 16:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
Santhosh G_4-Nov-12 17:08
MemberSanthosh G_4-Nov-12 17:08 
AnswerRe: problem with sprintf_s() on win 7 Pin
CPallini1-Nov-12 22:48
mveCPallini1-Nov-12 22: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.