reactos/subsys/system/explorer
diff -u -r1.35 -r1.36
--- doxy-footer.html 13 Mar 2004 20:05:32 -0000 1.35
+++ doxy-footer.html 14 Mar 2004 14:44:23 -0000 1.36
@@ -3,7 +3,7 @@
<tr>
<td><address style="align: right;"><small>
ROS Explorer Source Code Documentation
-<br>generated on 13.03.2004 by <a href="http://www.doxygen.org/index.html">
+<br>generated on 14.03.2004 by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address>
</td>
reactos/subsys/system/explorer/doc
diff -u -r1.35 -r1.36
--- TODO.txt 14 Mar 2004 12:43:26 -0000 1.35
+++ TODO.txt 14 Mar 2004 14:44:23 -0000 1.36
@@ -30,8 +30,3 @@
- Startmenu: You can't close the start menu with pressing Win-key You can open the start menu
with pressing Win-key, but can't close with another hit of Win-key.
-- > Despite of settings, the clock's always shown I set my Win-Explorer to hide the clock
- > shown in the taskbar, but the ROS-Exp ignores the setting and always shows the clock.
- Yes, ROS explorer doesn't read many settings from the registry currently,
- as it doesn't have a way to configure them. (missing configuration dialogs)
-
reactos/subsys/system/explorer/taskbar
diff -u -r1.36 -r1.37
--- traynotify.cpp 28 Feb 2004 10:57:01 -0000 1.36
+++ traynotify.cpp 14 Mar 2004 14:44:23 -0000 1.37
@@ -104,17 +104,34 @@
if (!g_Globals._SHRestricted || !SHRestricted(REST_HIDECLOCK))
#endif
{
- // create clock window
- _hwndClock = ClockWindow::Create(_hwnd);
-
- if (_hwndClock) {
- ClientRect clock_size(_hwndClock);
- _clock_width = clock_size.right;
+ HKEY hkeyStuckRects = 0;
+ DWORD buffer[10];
+ DWORD len = sizeof(buffer);
+
+ bool hide_clock = false;
+
+ // check if the clock should be hidden
+ if (!RegOpenKey(HKEY_CURRENT_USER, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StuckRects2"), &hkeyStuckRects) &&
+ !RegQueryValueEx(hkeyStuckRects, TEXT("Settings"), 0, NULL, (LPBYTE)buffer, &len) &&
+ len==sizeof(buffer) && buffer[0]==sizeof(buffer))
+ hide_clock = buffer[2] & 0x08? true: false;
+
+ if (!hide_clock) {
+ // create clock window
+ _hwndClock = ClockWindow::Create(_hwnd);
+
+ if (_hwndClock) {
+ ClientRect clock_size(_hwndClock);
+ _clock_width = clock_size.right;
+ }
}
- SetTimer(_hwnd, 0, 1000, NULL);
+ if (hkeyStuckRects)
+ RegCloseKey(hkeyStuckRects);
}
+ SetTimer(_hwnd, 0, 1000, NULL);
+
return 0;
}