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

C / C++ / MFC

 
GeneralInclude a .lib file Pin
Anonymous19-Sep-02 2:33
Anonymous19-Sep-02 2:33 
GeneralRe: Include a .lib file Pin
BlackSmith19-Sep-02 2:41
BlackSmith19-Sep-02 2:41 
GeneralRe: Include a .lib file Pin
User 665819-Sep-02 5:25
User 665819-Sep-02 5:25 
GeneralWant DLL Dialog to behave like Dialog base app Pin
Tony Teveris19-Sep-02 2:14
Tony Teveris19-Sep-02 2:14 
Questionhow to get an edit box to respond to enter Pin
ns19-Sep-02 1:14
ns19-Sep-02 1:14 
AnswerRe: how to get an edit box to respond to enter Pin
Arjan Schouten19-Sep-02 1:40
Arjan Schouten19-Sep-02 1:40 
AnswerRe: how to get an edit box to respond to enter Pin
dabs19-Sep-02 1:55
dabs19-Sep-02 1:55 
GeneralRe: I really need to know this.... Pin
ns19-Sep-02 2:04
ns19-Sep-02 2:04 
Okay. I already have in my prestranslate message:

if ((pMsg->message == WM_KEYDOWN))// && (pMsg->hwnd == m_hWnd))
{
    if (pMsg->wParam == VK_RETURN)
    {
        return TRUE;
    }
}


and dont know why or how (can you explain?), but it prevents the Cdialog from getting dismiised with an Enter. If I do your code idea, will the dialog vanish after pressing Enter? Thats what I want to happen, but if the user presses enter any other place other than the editbox , i dont want the dialog to vanish. Also a blank Cedit should not be able to be dismissed with Enter. Will your code if I replace mine with yours, so that? Or do I have to do (modified your code in red):

if ( pMSG->message == VM_KEYDOWN && pMSG->wParam == VK_RETURN )

{ //It's the enter key - check if your editbox has the focus:
if ( GetFocus( ) == &m_wndMyEditBoxThatIWantToCatchTheEnterKeyIn )
{ //Do stuff here... }

return TRUE
}

Thanks,
ns

Thanks,
ns
GeneralRe: I really need to know this.... Pin
dabs19-Sep-02 2:13
dabs19-Sep-02 2:13 
GeneralRe: I really need to know this.... Pin
ns19-Sep-02 2:27
ns19-Sep-02 2:27 
GeneralRe: I really need to know this.... Pin
Arjan Schouten19-Sep-02 3:23
Arjan Schouten19-Sep-02 3:23 
Generalavoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 1:01
professionalJoan M19-Sep-02 1:01 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Arjan Schouten19-Sep-02 1:12
Arjan Schouten19-Sep-02 1:12 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Steve S19-Sep-02 1:48
Steve S19-Sep-02 1:48 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 3:55
professionalJoan M19-Sep-02 3:55 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Steve S19-Sep-02 4:40
Steve S19-Sep-02 4:40 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 5:10
professionalJoan M19-Sep-02 5:10 
Questionconvert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:00
ns19-Sep-02 1:00 
AnswerRe: convert CString to a _bstr_t - how to? Pin
dabs19-Sep-02 1:25
dabs19-Sep-02 1:25 
GeneralRe: convert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:31
ns19-Sep-02 1:31 
GeneralRe: convert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:32
ns19-Sep-02 1:32 
GeneralRe: convert CString to a _bstr_t - how to? Pin
dabs19-Sep-02 1:39
dabs19-Sep-02 1:39 
AnswerRe: convert CString to a _bstr_t - how to? Pin
Trollslayer19-Sep-02 1:42
mentorTrollslayer19-Sep-02 1:42 
GeneralRe: convert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:53
ns19-Sep-02 1:53 
GeneralRe: convert CString to a _bstr_t - how to? Pin
dabs19-Sep-02 1:58
dabs19-Sep-02 1:58 

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.