c# - Is it possible that I can draw the Form window title text by myself? -
i want draw winform title text . there can it?
only title text.
i find out there way draw title : drawing own title bar, code confuse me, it's not form, , need re-draw title text.
sorry short question.
update:
i'm using krypton toolkit form window skin now. that's why want draw title text keep other skin , style.
you can't owner-draw only title text. either draw whole title bar (although it's more typical hide , draw custom component title bar , handle moving/resizing), or let windows draw it, can't just change way string title drawn.
you draw title bar windows (and draw title text wanted), involves tons of api calls metrics , colors , it's not easy if want support several windows versions (even microsoft doesn't right time!)
you can use (custom window frame using dwm) through p/invoke, , set form text nothing, draw whatever want on non-client area... that's how office it, again, it's lot of pain possibly not gain.
Comments
Post a Comment