Edit control doesn't generate WM_COMMAND messages


I have an edit control. In the parent window I'm listening a WM_COMMAND message. But my control doesn't send it on change. Moreover, when I'm watching messages with Spy I can see only different keyboard messages on the edit control itself and the only message in the main parent window is WM_CTLCOLOREDIT.

P.S.: The only interesting thing I'm doing - I'm creating an edit with HWND_MESSAGE parent and assign a parent later with SetParent();


For an edit control, notifications are sent to the original parent of the control. That is, in your case, the message only window.

In a comment to a <a href="https://stackoverflow.com/questions/22916895/after-changing-the-parent-of-a-child-window-with-setparent-the-child-window-sti" rel="nofollow">similar question</a> Raymond Chen says:


Many controls cache the original parent. Not much you can do about it.


You may be best postponing creation of the edit control until you have created its parent.


  • Character Encoding Problem
  • Google static map issue (not displaying)
  • The compatibility issue between NDIS version and Windows version
  • How to find the node position of a value in an XML tree?
  • UNet randomly disconnects
  • Why Android LocationManager has long delay before location updates start if setting accuracy
  • Excel macros Help. Creating a new column based of arrays.
  • Wix how to hide feature options (no subfeatures)
  • how to enable Wi-Fi and search for networks on windows phone emulator
  • wix: re-start an existing Service when install/uninstall finish
  • My phone is not moving, but GPS data still changing
  • Do Vue watched properties cache just like the computed properties?
  • How to determine when the text of an html element is changed
  • Compression in node.js
  • org.gnome.SessionManager in Ubuntu 12.04 chroot
  • AngularJs unit test - Check if “Init” function was called
  • VLC player event catch
  • CreateWindowEx fails with ERROR_CANNOT_FIND_WND_CLASS
  • Apple Reachability Notifications for Network OR Wi-Fi
  • Cassandra: What is a subcolumn
  • If I am creating a simple client server application in IntelliJ, how should this work?
  • Motorola barcode scanner SDK events C#
  • Create function that can pass a parameter without making a new component
  • Cuda Clang and OS X Mavericks
  • Click on button in another program - FindWindow, C#
  • Exception gevent.hub.LoopExit: LoopExit('This operation would block forever',)
  • jQuery: How to AJAXify WordPress Search?
  • Android device acting as an accessory
  • Is there a way to do normal logging with EureakLog?
  • Disable Enter in editText android
  • Get data from AJAX - How to
  • Akka Routing: Reply's send to router ends up as dead letters
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • Linking SubReports Without LinkChild/LinkMaster
  • unknown Exception android
  • Checking variable from a different class in C#
  • Easiest way to encapsulate a HTML5 webpage into an android app?