Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Genertic Auto-ptr ? Pin
Maxime Labelle18-Apr-02 21:19
Maxime Labelle18-Apr-02 21:19 
GeneralRe: Genertic Auto-ptr ? Pin
Paul M Watt18-Apr-02 21:44
mentorPaul M Watt18-Apr-02 21:44 
GeneralCEdit derived class Pin
User 988518-Apr-02 4:28
User 988518-Apr-02 4:28 
GeneralRe: CEdit derived class Pin
Ravi Bhavnani18-Apr-02 4:44
professionalRavi Bhavnani18-Apr-02 4:44 
GeneralRe: CEdit derived class Pin
User 988518-Apr-02 4:54
User 988518-Apr-02 4:54 
GeneralRe: CEdit derived class Pin
Jon Hulatt18-Apr-02 23:41
Jon Hulatt18-Apr-02 23:41 
GeneralRe: CEdit derived class Pin
User 988519-Apr-02 12:28
User 988519-Apr-02 12:28 
GeneralRe: CEdit derived class Pin
Bill Wilson18-Apr-02 13:28
Bill Wilson18-Apr-02 13:28 
What you CAN do, is to detect the loss of focus. This covers a return character, as well as mouse moves and etc. (You probably want to remove the highlight if the user clicks in another control, don't you?)

Try using this:
CWnd::OnKillFocus  
afx_msg void OnKillFocus( CWnd* pNewWnd );

Parameters

pNewWnd

Specifies a pointer to the window that receives the input focus (may be NULL or may be temporary).

Remarks

The framework calls this member function immediately before losing the input focus. 

If the CWnd object is displaying a caret, the caret should be destroyed at this point.

Note   This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.

CWnd Overview |  Class Members |  Hierarchy Chart

See Also   CWnd::SetFocus,WM_KILLFOCUS


--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources. 

GeneralRe: CEdit derived class Pin
User 988519-Apr-02 12:25
User 988519-Apr-02 12:25 
GeneralRe: CEdit derived class Pin
Bill Wilson19-Apr-02 12:42
Bill Wilson19-Apr-02 12:42 
GeneralRe: CEdit derived class Pin
PJ Arends19-Apr-02 12:58
professionalPJ Arends19-Apr-02 12:58 
GeneralRe: CEdit derived class Pin
User 988520-Apr-02 4:49
User 988520-Apr-02 4:49 
GeneralRe: CEdit derived class Pin
Matt Gullett19-Apr-02 17:28
Matt Gullett19-Apr-02 17:28 
GeneralRe: CEdit derived class Pin
User 988520-Apr-02 4:46
User 988520-Apr-02 4:46 
GeneralWin32 control question Pin
18-Apr-02 4:11
suss18-Apr-02 4:11 
GeneralRe: Win32 control question Pin
Ravi Bhavnani18-Apr-02 4:19
professionalRavi Bhavnani18-Apr-02 4:19 
GeneralRe: Win32 control question Pin
Carlos Antollini18-Apr-02 4:19
Carlos Antollini18-Apr-02 4:19 
GeneralView with feel&look like Output Wnd of Visual Studio Pin
DABMSC18-Apr-02 3:50
DABMSC18-Apr-02 3:50 
QuestionRead a CArchive in Linux? Pin
18-Apr-02 3:29
suss18-Apr-02 3:29 
AnswerRe: Read a CArchive in Linux? Pin
Tim Smith18-Apr-02 4:14
Tim Smith18-Apr-02 4:14 
GeneralRe: Read a CArchive in Linux? Pin
Jeremy Falcon18-Apr-02 4:35
professionalJeremy Falcon18-Apr-02 4:35 
GeneralRe: Read a CArchive in Linux? Pin
18-Apr-02 22:50
suss18-Apr-02 22:50 
GeneralFinding last write time of a file over the Internet Pin
Cretze18-Apr-02 2:17
Cretze18-Apr-02 2:17 
GeneralRe: Finding last write time of a file over the Internet Pin
Todd Smith18-Apr-02 8:18
Todd Smith18-Apr-02 8:18 
GeneralCString to COleDateTime Pin
Komtiki17-Apr-02 23:59
Komtiki17-Apr-02 23:59 

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.