By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,382 Members | 2,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,382 IT Pros & Developers. It's quick & easy.

Rules for passing Windoes messages if control A is on Control B which is on a form?

P: n/a
On a Form I have a RichTextBox.

I do the call for EM_SETEVENTMASK with ENM_REQUESTRESIZE

The user control's WndProc writes to the consol to keep track of any
EN_REQUESTRESIZE messages.

As I type into the RichTextBox I see the results of the console writes in
the Output window.

I add a Panel to the Form and move the RichTextBox into it.

I no longer get the console writes.

Seems like the Panel is eating the EN_REQUESTRESIZE messages and not passing
them to the Form .
What are the rules for passing Windows messages if control A is on Control B
which is on a form?

Do Windows messages from A get to the form?

Can I force that to happen?

Is there a solution for me?
Thanks



Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.