|
From: <arn...@us...> - 2007-11-15 18:25:15
|
Revision: 908
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=908&view=rev
Author: arnetheduck
Date: 2007-11-15 10:25:09 -0800 (Thu, 15 Nov 2007)
Log Message:
-----------
patches
Modified Paths:
--------------
dcplusplus/trunk/ADC.txt
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h
dcplusplus/trunk/smartwin/include/smartwin/VCDesktopHeaders.h
dcplusplus/trunk/smartwin/source/widgets/WidgetListView.cpp
dcplusplus/trunk/win32/WinUtil.cpp
Modified: dcplusplus/trunk/ADC.txt
===================================================================
--- dcplusplus/trunk/ADC.txt 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/ADC.txt 2007-11-15 18:25:09 UTC (rev 908)
@@ -478,7 +478,6 @@
HO | integer | Hubs where user is op and in NORMAL state
TO | string | Token, as received in RCM/CTM, when establishing a C-C connection.
CT | integer | Client (user) type, 1=bot, 2=registered user, 3=operator, 4=hub owner, 5=hub (used when the hub sends an INF about itself)
-RG | integer | 1=registered
AW | integer | 1=Away, 2=Extended away, not interested in hub chat (hubs may skip sending broadcast type MSG commands to clients with this flag)
SU | string | Comma-separated list of feature FOURCC's. This notifies other clients of extended capabilities of the connecting client. Use with discretion.
___
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/changelog.txt 2007-11-15 18:25:09 UTC (rev 908)
@@ -10,6 +10,8 @@
* Update to ADC 0.14
* Fixed pressing enter in the notepad (poy)
* Fixed user commands params (poy)
+* Readded list view double buffering (thanks poy)
+* Fixed some msvc compile issues (thanks james ross)
-- 0.703 2007-11-08 --
* Fixed invalid strings (thanks james ross)
Modified: dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h 2007-11-15 18:25:09 UTC (rev 908)
@@ -135,6 +135,19 @@
#endif // !_WIN64
#endif // !GetWindowLongPtr
+ // these should be defined in CommCtrl.h, but the one in MinGW doesn't define them... (2007-11-06)
+ #if (_WIN32_WINNT >= 0x0501)
+ #ifndef HDF_SORTUP
+ #define HDF_SORTUP 0x0400
+ #endif
+ #ifndef HDF_SORTDOWN
+ #define HDF_SORTDOWN 0x0200
+ #endif
+ #ifndef LVS_EX_DOUBLEBUFFER
+ #define LVS_EX_DOUBLEBUFFER 0x00010000
+ #endif
+ #endif
+
#ifdef max
#undef max
#endif
Modified: dcplusplus/trunk/smartwin/include/smartwin/VCDesktopHeaders.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/VCDesktopHeaders.h 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/smartwin/include/smartwin/VCDesktopHeaders.h 2007-11-15 18:25:09 UTC (rev 908)
@@ -31,6 +31,17 @@
#ifndef __GNUC__
#ifndef WINCE
+ // Need to tell msvc which version of Windows we're targeting!
+#ifndef _WIN32_WINNT
+ #define _WIN32_WINNT 0x0501
+#endif
+#ifndef _WIN32_IE
+ #define _WIN32_IE 0x0501
+#endif
+#ifndef WINVER
+ #define WINVER 0x501
+#endif
+
static const SmartWin::Platform CurrentPlatform = SmartWin::SmartWinDesktop;
#define SMARTWIN_WNDCLASSEX WNDCLASSEX
@@ -42,18 +53,11 @@
#include <winuser.h>
#include <windowsx.h>
#include <Shellapi.h>
+ #include <shlwapi.h>
#include <commctrl.h>
+ #include <commdlg.h>
#include <assert.h>
-/* No longer needed because we replaced std:min() with (std:min)()
- #ifdef max
- #undef max
- #endif
-
- #ifdef min
- #undef min
- #endif
-*/
#pragma comment( lib, "Comdlg32.lib" )
#pragma comment( lib, "comctl32.lib" )
#ifdef DLL
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetListView.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetListView.cpp 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetListView.cpp 2007-11-15 18:25:09 UTC (rev 908)
@@ -61,15 +61,6 @@
updateArrow();
}
-// these should be defined in CommCtrl.h, but the one in MinGW doesn't define them... (2007-11-06)
-#if (_WIN32_WINNT >= 0x0501)
-#ifndef HDF_SORTUP
-#define HDF_SORTUP 0x0400
-#endif
-#ifndef HDF_SORTDOWN
-#define HDF_SORTDOWN 0x0200
-#endif
-#endif
void WidgetListView::updateArrow() {
if(ComCtl6) {
int flag = isAscending() ? HDF_SORTUP : HDF_SORTDOWN;
Modified: dcplusplus/trunk/win32/WinUtil.cpp
===================================================================
--- dcplusplus/trunk/win32/WinUtil.cpp 2007-11-15 16:00:50 UTC (rev 907)
+++ dcplusplus/trunk/win32/WinUtil.cpp 2007-11-15 18:25:09 UTC (rev 908)
@@ -132,7 +132,7 @@
xlistView.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_HSCROLL | WS_VSCROLL | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS;
xlistView.exStyle = WS_EX_CLIENTEDGE;
- xlistView.lvStyle = LVS_EX_LABELTIP | LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT;
+ xlistView.lvStyle = LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT | LVS_EX_LABELTIP | LVS_EX_DOUBLEBUFFER;
xlistView.font = font;
xtextBox.exStyle = WS_EX_CLIENTEDGE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|