changeset 108:108674099806

Changed some of the default spacings for the tree control on OS/2 so it is more visually appealing.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 18 Sep 2002 11:53:14 +0000
parents cd0e5cf92f6a
children 94d273843a41
files os2/dw.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Tue Sep 17 17:33:06 2002 +0000
+++ b/os2/dw.c	Wed Sep 18 11:53:14 2002 +0000
@@ -3803,8 +3803,12 @@
 	cnrinfo.flWindowAttr = CV_TREE | CA_TREELINE;
 	cnrinfo.slBitmapOrIcon.cx = 16;
 	cnrinfo.slBitmapOrIcon.cy = 16;
-
-	WinSendMsg(tmp, CM_SETCNRINFO, &cnrinfo, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON));
+	cnrinfo.cyLineSpacing = 0;
+	cnrinfo.cxTreeIndent = 16;
+	cnrinfo.cxTreeLine = 1;
+
+	WinSendMsg(tmp, CM_SETCNRINFO, &cnrinfo, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON |
+														CMA_LINESPACING | CMA_CXTREEINDENT | CMA_CXTREELINE));
 	blah->oldproc = WinSubclassWindow(tmp, _TreeProc);
 	WinSetWindowPtr(tmp, QWP_USER, blah);
 	dw_window_set_font(tmp, DefaultFont);