Click here to Skip to main content
16,016,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCEdit box Pin
Ruca22-May-02 23:52
Ruca22-May-02 23:52 
GeneralRe: CEdit box Pin
Nish Nishant23-May-02 0:04
sitebuilderNish Nishant23-May-02 0:04 
GeneralRe: CEdit box Pin
Ruca23-May-02 0:03
Ruca23-May-02 0:03 
GeneralRe: CEdit box Pin
Prem Kumar23-May-02 0:07
Prem Kumar23-May-02 0:07 
GeneralRe: CEdit box Pin
Ruca23-May-02 0:09
Ruca23-May-02 0:09 
GeneralRe: CEdit box Pin
Martin Speiser23-May-02 0:31
Martin Speiser23-May-02 0:31 
GeneralRe: CEdit box Pin
Nish Nishant23-May-02 0:30
sitebuilderNish Nishant23-May-02 0:30 
GeneralRe: CEdit box Pin
Roger Allen23-May-02 2:46
Roger Allen23-May-02 2:46 
Override the parents class PreTranslateMessage and put in this code:

// note, m_Edit is  CEdit control variable
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ENTER && GetFocus() == &m_Edit)
{
pMsg->wParam = VK_TAB ;
}
// call base class

This code converts the ENTER key for that edit control only to a tab, so the EN_KILLFOCUS will be called regardless of whether the user uses the mouse, tab or enter key when ficnishing entering text.


Roger Allen
Sonork 100.10016

If I had a quote, it would be a very good one.
GeneralSockets object transportation Pin
22-May-02 23:34
suss22-May-02 23:34 
GeneralRe: Sockets object transportation Pin
Nish Nishant23-May-02 0:00
sitebuilderNish Nishant23-May-02 0:00 
GeneralRe: Sockets object transportation Pin
Bene23-May-02 3:19
Bene23-May-02 3:19 
GeneralRe: Sockets object transportation Pin
23-May-02 3:48
suss23-May-02 3:48 
GeneralRe: Sockets object transportation Pin
Bene23-May-02 5:27
Bene23-May-02 5:27 
GeneralCPU Usage Pin
Dominik Reichl22-May-02 23:17
Dominik Reichl22-May-02 23:17 
GeneralRe: CPU Usage Pin
Erik Funkenbusch22-May-02 23:27
Erik Funkenbusch22-May-02 23:27 
GeneralRe: CPU Usage Pin
Dominik Reichl22-May-02 23:30
Dominik Reichl22-May-02 23:30 
QuestionWho know the function of "CryptExtOpenCER"? Pin
wabc22-May-02 22:36
wabc22-May-02 22:36 
AnswerRe: Who know the function of "CryptExtOpenCER"? Pin
Martin Ziacek22-May-02 22:44
Martin Ziacek22-May-02 22:44 
GeneralRe: Who know the function of "CryptExtOpenCER"? Pin
wabc22-May-02 23:14
wabc22-May-02 23:14 
Questionhow to put the checkbox to a list control? Pin
chen22-May-02 22:28
chen22-May-02 22:28 
AnswerRe: how to put the checkbox to a list control? Pin
Erik Funkenbusch22-May-02 23:34
Erik Funkenbusch22-May-02 23:34 
GeneralFaded Menus Pin
Sameer Maggon22-May-02 21:34
Sameer Maggon22-May-02 21:34 
GeneralRe: Faded Menus Pin
Prem Kumar22-May-02 22:03
Prem Kumar22-May-02 22:03 
GeneralIIS Administration Pin
Ryszard Krakowiak22-May-02 20:35
Ryszard Krakowiak22-May-02 20:35 
GeneralRe: IIS Administration Pin
Mazdak22-May-02 23:26
Mazdak22-May-02 23: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.