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. Summary/Download

Summary/Download

By olaf , 3 July 2025

The key point in the validation of an edit control is the interception of WM_CHAR message; This can be done by subclassing. When subclassing, the message queue of a control is preceeded with another message queue, that can handle the messages first. In the example of CHertzEdit the additional message queue rejects not only the entry of invalid characters, but also formats the content of the control. For the data transfer via DDX two additional methods must be added to the control that can set and get the content.
Download CHertzEdit.zip

Book traversal links for 15

  • Usage (e.g. in a dialog window)
  • Up

Language switcher

  • English
  • German
Powered by Drupal