[wx-dev] wxMSW: Themed borders?
Robin Dunn
robin at alldunn.com
Tue Jan 30 22:16:20 PST 2007
Vadim Zeitlin wrote:
> On Mon, 29 Jan 2007 16:26:14 -0800 Robin Dunn <robin at alldunn.com> wrote:
> RD> I've done a bit of googling today and it looks like the way this has =
> RD> been solved by others so far is to handle WM_NCPAINT and draw the bor=
der =
> RD> there.
> RD> =
> RD> http://www.codeproject.com/cs/miscctrl/RichTextBoxEx.asp
> RD> http://www.codeguru.com/cpp/w-p/win32/tutorials/article.php/c8729__1/
> RD> http://www.shorterpath.com/develop/zonearticles/ThemedCustomControl.a=
sp
> =
> This is the standard Windows way of doing this. =
Ok, I've started grafting in some native themed border drawing into =
wxMSW, see attached patch. Unfortunately there are no more style bits =
left in the range used by border styles, so for now I've just stolen =
wxBORDER_DOUBLE. Any suggestions for what to do instead? I've thought =
about piggy backing on wxBORDER_SUNKEN instead, since that maps to =
WS_EX_CLIENTEDGE and with that style the native widgets draw a themed =
border. However if I do that then I'd have to decide when to let the =
native border drawing happen, and when to do my custom drawing, that =
might get kinda tricky so I'd rather keep it a separate style, but there =
aren't any available... I'd like to be able to do this for 2.8 so that =
rules out adding a new member. Any other ideas?
-- =
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: themedborder.patch
Type: text/x-patch
Size: 6355 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20070130/0cc8=
8865/themedborder.bin
More information about the wx-dev
mailing list