[wx-dev] wxMSW: Themed borders?

Robin Dunn robin at alldunn.com
Fri Aug 10 12:12:05 PDT 2007


Julian Smart wrote:

>> Does anybody know if there is a way to tickle the system into asking 
>> for the NC size again without actually needing to change the size?
> I'll have a google... 

MSDN says that SetWindowPos with a flag of SWP_FRAMECAHNGED will cause 
WM_NCCALCSIZE to be sent even if the size doesn't change.  I've tried it 
out and it does work, however I'm not sure the best place to put the call.


> however perhaps we can pass default parameters to 
> CreateBase and then set the size later in the constructor, if it's only 
> a problem for wxTextCtrl.

Are there any other native widgets that are not getting the theme border 
by default?

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list