changeset 1804:83b2bd4ca2a3

Drop out of dw_window_set_style() on Windows for status text widgets... Currently there are no available styles, and some will muck up the widget.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 27 Sep 2012 08:42:50 +0000
parents 5ed9f7ea3882
children 2bcdc3cfffa7
files win/dw.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Thu Sep 27 07:30:30 2012 +0000
+++ b/win/dw.c	Thu Sep 27 08:42:50 2012 +0000
@@ -7703,7 +7703,10 @@
    tmp ^= mask;
    tmp |= style & mask;
 
-   if(_tcsnicmp(tmpbuf, ClassName, _tcslen(ClassName)+1)==0)
+   /* Drop out for status bar, it currently doesn't accept styles on Windows */
+   if(_tcsnicmp(tmpbuf, StatusbarClassName, _tcslen(StatusbarClassName)+1)==0)
+      return;
+   else if(_tcsnicmp(tmpbuf, ClassName, _tcslen(ClassName)+1)==0)
    {
       tmp = tmp & 0xffff0000;
 #ifdef AEROGLASS