Anonymous avatar Anonymous committed c61e31e

fs33a: +i114247# sync WindowBits and Style

Comments (0)

Files changed (1)


 	pImp->SetWindowBits( nWinStyle );
+    if ( nWindowStyle != GetStyle() )
+    {
+        SetStyle( nWindowStyle );
+    }
 void SvTreeListBox::PaintEntry( SvLBoxEntry* pEntry )
     SvLBox::StateChanged( i_nStateChange );
     if ( ( i_nStateChange & STATE_CHANGE_STYLE ) != 0 )
-        SetWindowBits( GetStyle() );
+        if ( GetStyle() != nWindowStyle )
+            // keep in sync with our WindowBits
+            // TODO: SetWindowBits is weird, it should be completely replaced (in all clients) with SetStyle
+            // (or are there WindowBits which have a different meaning when interpreted as style? Wouldn't
+            // be the first time, but all of those should be fixed meanwhile ...)
+            SetWindowBits( GetStyle() );
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.