Listview problems
Dimitrie O. Paun
dpaun at rogers.com
Fri Feb 7 08:06:19 CST 2003
On February 6, 2003 10:47 pm, Dan Kegel wrote:
> Thanks, Dimi, for finally getting me to try mingw;
> I've been avoiding it out of fear for about eight years.
> It's really improved since those early days!
> (Golly, a gui installer and everything!)
It is cool, isn't it? You're welcome! :)
Here is a Makefile that should work with both mingw and winelib:
==================> Makefile <=============================
# for mingw
#CC = gcc
#RC = windres
# for wine
CC = winegcc
RC = wrc
%-res.o: %.rc
$(RC) -o $@ $<
%.o: %.c
$(CC) -DWIN32 -D_WIN32_IE=0x300 -o $@ -c $<
vlistvw: vlistvw-res.o vlistvw.o
$(CC) -mwindows $^ -o $@ -lcomctl32
===========================================================
This is for winelib, to make it work with mingw, just change
the CC & RC definitions.
To compile this under winelib, you need to apply the little
patch that I just send, which I'll include in there for your
convenience:
Index: include/commctrl.h
===================================================================
RCS file: /var/cvs/wine/include/commctrl.h,v
retrieving revision 1.103
diff -u -r1.103 commctrl.h
--- include/commctrl.h 4 Jan 2003 00:19:17 -0000 1.103
+++ include/commctrl.h 7 Feb 2003 07:29:41 -0000
@@ -3334,6 +3334,8 @@
int dy;
} NMLVSCROLL, *LPNMLVSCROLL;
+#define ListView_SetItemCount(hwnd,count) \
+ (BOOL)SNDMSGA((hwnd),LVM_SETITEMCOUNT,(WPARAM)(INT)(count),0)
#define ListView_SetTextBkColor(hwnd,clrBk) \
(BOOL)SNDMSGA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
#define ListView_SetTextColor(hwnd,clrBk) \
--
Dimi.
More information about the wine-devel
mailing list