how to receive and handle reflected MSGs in TOP-LEVEL controls



  • Usually a control embedded in a Dialog or some other container-window can send notifications and these notifications are again reflected to the control itself.

    But what happens when the control, say a CEdit, is created as a top-level window (i.e. without parent/owner). Where does its parent-notification go and how can i catch it?


  • Mod

    Deutsche Gruppe... 🙂

    Nowhere. Never use such controls as top-level windows. Always create a frame window even if its complete client area is covered by a child window.



  • Tschuldigung dass ich Englisch benutzt habe, weil meine deutsche Kentnisse nicht gut ist.

    Aber merkwürdig ist dass, obwohl mein TOP-LEVEL CEdit keine reflected Notification empfangen kann, aber kann er doch reflected WM_CTLCOLOR fangen und behandeln. Jemand hat ne idee?


  • Mod

    Reflected Messages werden umgeleitet von Parent zum eigentlichen Fenster.
    Message Reflection funktioniert zum Beispiel auch nicht wenn das Parent Fenster des CEdir kein MFC Fenster ist!


Anmelden zum Antworten