G
Guest
Hi,
I have an MFC application that has a CDialog based dialog box that contains
a .net UserControl (via DDX_ManagedControl) as well as a native edit control
which has the ES_NUMBER style set. Now a very strange thing happens: If I
press a non-numeric key in the native edit control, up pops a little balloon
tip saying "Unacceptable Character", however when I press the key again, the
tooltip disappears, reappears and in the process blanks out all of the .Net
control. Any other native controls on the form are fine, just the .net
controls are blanking out and not repainting. If I move the mouse over them
they the do partially repaint.
Anyone come across this and know why it happens and if there is a solution?
(This can easily be reproduced in the "MFC04" sample .Net/MFC application
from MSDN.)
I have an MFC application that has a CDialog based dialog box that contains
a .net UserControl (via DDX_ManagedControl) as well as a native edit control
which has the ES_NUMBER style set. Now a very strange thing happens: If I
press a non-numeric key in the native edit control, up pops a little balloon
tip saying "Unacceptable Character", however when I press the key again, the
tooltip disappears, reappears and in the process blanks out all of the .Net
control. Any other native controls on the form are fine, just the .net
controls are blanking out and not repainting. If I move the mouse over them
they the do partially repaint.
Anyone come across this and know why it happens and if there is a solution?
(This can easily be reproduced in the "MFC04" sample .Net/MFC application
from MSDN.)