Why PeekMessage? Can't you just check for EN_CHANGE or EN_UPDATE notification to the parent?