Author: gadamopoulos
Date: Wed Apr 13 18:25:58 2011
New Revision: 51330

URL: http://svn.reactos.org/svn/reactos?rev=51330&view=rev
Log:
[explorer]
- Use the shell default auto-arrangement positioning. Aloow using custom 
positioning when configured. This fixes the positioning of icons of the desktop 
to look like windows

Modified:
    trunk/reactos/base/shell/explorer/desktop/desktop.cpp

Modified: trunk/reactos/base/shell/explorer/desktop/desktop.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/desktop/desktop.cpp?rev=51330&r1=51329&r2=51330&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/desktop/desktop.cpp [iso-8859-1] 
(original)
+++ trunk/reactos/base/shell/explorer/desktop/desktop.cpp [iso-8859-1] Wed Apr 
13 18:25:58 2011
@@ -496,8 +496,6 @@
 {
        _hwndListView = GetNextWindow(hwnd, GW_CHILD);
 
-       SetWindowStyle(_hwndListView, 
GetWindowStyle(_hwndListView)&~LVS_ALIGNMASK);//|LVS_ALIGNTOP|LVS_AUTOARRANGE);
-
         // work around for Windows NT, Win 98, ...
         // Without this the desktop has mysteriously only a size of 800x600 
pixels.
        ClientRect rect(hwnd);
@@ -506,9 +504,8 @@
         // subclass background window
        new BackgroundWindow(_hwndListView);
 
-       _icon_algo = 1; // default icon arrangement
-
-       PositionIcons();
+       _icon_algo = 0; // default icon arrangement
+
        InitDragDrop();
 }
 
@@ -736,6 +733,9 @@
 
        RECT work_area;
        SystemParametersInfo(SPI_GETWORKAREA, 0, &work_area, 0);
+
+       /* disable default allignment */
+       SetWindowStyle(_hwndListView, 
GetWindowStyle(_hwndListView)&~LVS_ALIGNMASK);//|LVS_ALIGNTOP|LVS_AUTOARRANGE);
 
        const POINTS& dir1 = s_align_dir1[_icon_algo];
        const POINTS& dir2 = s_align_dir2[_icon_algo];


Reply via email to