-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Richard-Hsu
Message 2 in Discussion
Hi, I myself am kind of trying to do something similar. Here is some code fragments
(not written by me, but decompiled) that might give an indication as to how it may be
done. I am not in a position either to explain the code or to give a working version
of it. Maybe when I have figured it out myself, I'll post something here.
protected override void WndProc(ref Message m)
{ if ((!MxTheme.IsAppThemed && this._flatAppearance) && ((m.Msg == 15) || (m.Msg
== 133)))
{
base.DefWndProc(m);
this.DrawFlatTextBox();
return;}
base.WndProc(m);
} public void set_FlatAppearance(bool value)
{ if (value != this._flatAppearance)
{
this._flatAppearance = value;
if (base.IsHandleCreated)
{
base.Invalidate();
}
}}
I know I have provided very little (please ignore the strange formatting), but the
above code clearly indicates that you should override the WndProc in your derived
control and handle the repainting, that ought to solve your problem. But this is about
the most I can say on this.
Regards,
Richard Hsu, Kolkata.
http://richardhsu.blogspot.com
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]