• R/O
  • HTTP
  • SSH
  • HTTPS

thirdparty-altwindirstat: Commit

A - since abandoned - fork of WinDirStat which had some interesting changes.

Original home: https://github.com/ariccio/altWinDirStat


Commit MetaInfo

Révisionb806f45243dd69416cb76fed49e2b7fd4eda71c5 (tree)
l'heure2016-05-28 01:20:26
AuteurAlexander Riccio <alexander@ricc...>
CommiterAlexander Riccio

Message de Log

scattered changes before imaging drive

Change Summary

Modification

--- a/WinDirStat/windirstat/options.cpp
+++ b/WinDirStat/windirstat/options.cpp
@@ -260,13 +260,13 @@ void CPersistence::SetMainWindowPlacement( _In_ const WINDOWPLACEMENT& wp ) {
260260 }
261261
262262 void CPersistence::SetSplitterPos( _In_z_ const PCWSTR name, _In_ const bool valid, _In_ const DOUBLE userpos ) {
263- INT pos = 0;
264- if ( valid ) {
265- pos = static_cast<INT>( userpos * 100 );
266- }
267- else {
268- pos = -1;
269- }
263+ const INT pos = ( valid ? static_cast<INT>( userpos * 100 ) : -1 );
264+ //if ( valid ) {
265+ // pos = static_cast<INT>( userpos * 100 );
266+ // }
267+ //else {
268+ // pos = -1;
269+ // }
270270 CRegistryUser::SetProfileInt( registry_strings::sectionPersistence, MakeSplitterPosEntry( name ).c_str( ), pos );
271271 }
272272
@@ -282,19 +282,19 @@ void CPersistence::GetSplitterPos( _In_z_ const PCWSTR name, _Out_ bool* const
282282 }
283283 }
284284
285-void CPersistence::GetDialogRectangle( _In_z_ const PCWSTR name, _Out_ RECT* const rc ) {
286-
287- const HRESULT rectangle_result = GetRect( MakeDialogRectangleEntry( name ), rc );
288- ASSERT( SUCCEEDED( rectangle_result ) );
289- if ( !SUCCEEDED( rectangle_result ) ) {
290- //TODO: BUGBUG: Fill with default values!
291- TRACE( _T( "GetRect( MakeDialogRectangleEntry( %s ), rc ) failed!! THIS ISN'T GOOD!\r\n" ), name );
292- }
293-
294- RECT temp = (*rc);
295- SanifyRect( &temp );
296- (*rc) = temp;
297- }
285+//void CPersistence::GetDialogRectangle( _In_z_ const PCWSTR name, _Out_ RECT* const rc ) {
286+//
287+// const HRESULT rectangle_result = GetRect( MakeDialogRectangleEntry( name ), rc );
288+// ASSERT( SUCCEEDED( rectangle_result ) );
289+// if ( !SUCCEEDED( rectangle_result ) ) {
290+// //TODO: BUGBUG: Fill with default values!
291+// TRACE( _T( "GetRect( MakeDialogRectangleEntry( %s ), rc ) failed!! THIS ISN'T GOOD!\r\n" ), name );
292+// }
293+//
294+// RECT temp = (*rc);
295+// SanifyRect( &temp );
296+// (*rc) = temp;
297+// }
298298
299299 void CPersistence::SetDialogRectangle( _In_z_ const PCWSTR name, _In_ const RECT rc ) {
300300 SetRect( MakeDialogRectangleEntry( name ).c_str( ), rc );
--- a/WinDirStat/windirstat/options.h
+++ b/WinDirStat/windirstat/options.h
@@ -80,7 +80,7 @@ public:
8080 static void SetSplitterPos ( _In_z_ const PCWSTR name, _In_ const bool valid, _In_ const DOUBLE userpos );
8181
8282 static void GetConfigPosition ( _Inout_ POINT* const pt );
83- static void GetDialogRectangle ( _In_z_ const PCWSTR name, _Out_ RECT* const rc );
83+ //static void GetDialogRectangle ( _In_z_ const PCWSTR name, _Out_ RECT* const rc );
8484 static void GetSplitterPos ( _In_z_ const PCWSTR name, _Out_ bool* const valid, _Out_ DOUBLE* const userpos );
8585 static void GetMainWindowPlacement ( _Out_ WINDOWPLACEMENT* const wp );
8686 static INT GetConfigPage ( _In_ const INT max );
--- a/WinDirStat/windirstat/ownerdrawnlistcontrol.h
+++ b/WinDirStat/windirstat/ownerdrawnlistcontrol.h
@@ -536,7 +536,7 @@ namespace {
536536 }
537537
538538 template<size_t count>
539- void draw_proper_text_for_each_column( _In_ COwnerDrawnListItem* const item, _In_ const rsize_t thisLoopSize, _In_ _In_reads_( thisLoopSize ) const column::ENUM_COL( &subitems )[ count ], _In_ HDC hInMemoryDeviceContext, _In_ _In_reads_( thisLoopSize ) const RECT( &rects_draw )[ count ], _In_ const PDRAWITEMSTRUCT pDestinationDrawItemStruct, _In_ _In_reads_( thisLoopSize ) int( &focusLefts_temp )[ count ], _In_ const bool showSelectionAlways, _In_ const bool bIsFullRowSelection, _In_ const std::vector<bool>& is_right_aligned_cache, _In_ const COwnerDrawnListCtrl* const owner_drawn_list_ctrl ) {
539+ void draw_proper_text_for_each_column( _In_ const COwnerDrawnListItem* const item, _In_ const rsize_t thisLoopSize, _In_ _In_reads_( thisLoopSize ) const column::ENUM_COL( &subitems )[ count ], _In_ HDC hInMemoryDeviceContext, _In_ _In_reads_( thisLoopSize ) const RECT( &rects_draw )[ count ], _In_ const PDRAWITEMSTRUCT pDestinationDrawItemStruct, _In_ _In_reads_( thisLoopSize ) int( &focusLefts_temp )[ count ], _In_ const bool showSelectionAlways, _In_ const bool bIsFullRowSelection, _In_ const std::vector<bool>& is_right_aligned_cache, _In_ const COwnerDrawnListCtrl* const owner_drawn_list_ctrl ) {
540540 for ( size_t i = 0; i < thisLoopSize; i++ ) {
541541 //draw the proper text in each column?
542542
@@ -649,7 +649,7 @@ class COwnerDrawnListCtrl : public CListCtrl {
649649
650650 protected:
651651 virtual void DrawItem( _In_ PDRAWITEMSTRUCT pDestinationDrawItemStruct ) override final {
652- const auto item = reinterpret_cast< COwnerDrawnListItem *> ( pDestinationDrawItemStruct->itemData );
652+ const auto item = reinterpret_cast< const COwnerDrawnListItem *> ( pDestinationDrawItemStruct->itemData );
653653 const auto pCDestinationDeviceContext = CDC::FromHandle( pDestinationDrawItemStruct->hDC );
654654 const auto bIsFullRowSelection = m_showFullRowSelection;
655655 ASSERT( pDestinationDrawItemStruct->hDC != NULL );
Afficher sur ancien navigateur de dépôt.