Skip to main content
www.olaf-groeger.de

Main navigation

  • Home
  • NMR
  • Programming
    • Streams
    • Subclassing of edit controls
  • Software
    • Calimah Scheduler
    • ServicesCtl

Breadcrumb

  1. Home
  2. Programming
  3. Subclassing of Edit Controls
  4. Implementation of The Message Handler For WM_KILLFOCUS

Implementation of the message handler for WM_KILLFOCUS

By olaf , 3 July 2025

This message handler is mandatory when the control should be able to send its value to the application without using the DDX mechanisms. This is useful when the application should be notified about changes without closing the embedding dialog.

void CHertzEdit::OnKillFocus(CWnd* pNewWnd)
{
        CEdit::OnKillFocus(pNewWnd);
        GetValueFromWindow();
        SetValueToWindow();
}

Book traversal links for 15

  • Implementation of the DDX method
  • Up
  • Usage (e.g. in a dialog window)

Language switcher

  • English
  • German
Powered by Drupal