changeset 310:77105fe19c1f

Removed obsolete dw_container_set_view() function.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Mar 2003 09:18:00 +0000
parents 49047a8787cb
children 24c1dfffe97e
files dw.def dw.h dwtest.c dww.def gtk/dw.c os2/dw.c win/dw.c
diffstat 7 files changed, 7 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/dw.def	Mon Mar 31 08:53:46 2003 +0000
+++ b/dw.def	Mon Mar 31 09:18:00 2003 +0000
@@ -128,7 +128,6 @@
   dw_container_set_row_title             @224
   dw_container_insert                    @225
   dw_container_clear                     @226
-  dw_container_set_view                  @227
   dw_container_query_start               @228
   dw_container_query_next                @229
   dw_container_delete                    @230
--- a/dw.h	Mon Mar 31 08:53:46 2003 +0000
+++ b/dw.h	Mon Mar 31 09:18:00 2003 +0000
@@ -129,10 +129,6 @@
 #define DW_CFA_HORZSEPARATOR     CFA_HORZSEPARATOR
 #define DW_CFA_SEPARATOR         CFA_SEPARATOR
 
-#define DW_CA_DETAILSVIEWTITLES  CA_DETAILSVIEWTITLES
-#define DW_CV_MINI               CV_MINI
-#define DW_CV_DETAIL             CV_DETAIL
-
 #define DW_CRA_SELECTED          CRA_SELECTED
 #define DW_CRA_CURSORED          CRA_CURSORED
 
@@ -289,10 +285,6 @@
 #define DW_CFA_HORZSEPARATOR     0
 #define DW_CFA_SEPARATOR         0
 
-#define DW_CA_DETAILSVIEWTITLES  0
-#define DW_CV_MINI               0
-#define DW_CV_DETAIL             0
-
 #define DW_CRA_SELECTED          LVNI_SELECTED
 #define DW_CRA_CURSORED          LVNI_FOCUSED
 
@@ -494,10 +486,6 @@
 #define DW_CFA_HORZSEPARATOR     (1 << 8)
 #define DW_CFA_SEPARATOR         (1 << 9)
 
-#define DW_CA_DETAILSVIEWTITLES  1
-#define DW_CV_MINI               (1 << 1)
-#define DW_CV_DETAIL             (1 << 2)
-
 #define DW_SLS_READONLY          1
 #define DW_SLS_RIBBONSTRIP       (1 << 1)
 
@@ -863,7 +851,6 @@
 void API dw_container_insert(HWND handle, void *pointer, int rowcount);
 void API dw_container_clear(HWND handle, int redraw);
 void API dw_container_delete(HWND handle, int rowcount);
-void API dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight);
 char * API dw_container_query_start(HWND handle, unsigned long flags);
 char * API dw_container_query_next(HWND handle, unsigned long flags);
 void API dw_container_scroll(HWND handle, int direction, long rows);
--- a/dwtest.c	Mon Mar 31 08:53:46 2003 +0000
+++ b/dwtest.c	Mon Mar 31 09:18:00 2003 +0000
@@ -569,8 +569,6 @@
 	container = dw_container_new(100);
 	dw_box_pack_start( notebookbox4, container, 500, 200, TRUE, FALSE, 1);
 
-	dw_container_set_view(container, DW_CV_DETAIL | DW_CV_MINI | DW_CA_DETAILSVIEWTITLES, 16, 16);
-
 	/* and a status area to see whats going on */
 	container_status = dw_status_text_new("", 0);
 	dw_box_pack_start( notebookbox4, container_status, 100, 20, TRUE, FALSE, 1);
--- a/dww.def	Mon Mar 31 08:53:46 2003 +0000
+++ b/dww.def	Mon Mar 31 09:18:00 2003 +0000
@@ -125,7 +125,6 @@
   dw_container_set_row_title             @224
   dw_container_insert                    @225
   dw_container_clear                     @226
-  dw_container_set_view                  @227
   dw_container_query_start               @228
   dw_container_query_next                @229
   dw_container_delete                    @230
--- a/gtk/dw.c	Mon Mar 31 08:53:46 2003 +0000
+++ b/gtk/dw.c	Mon Mar 31 09:18:00 2003 +0000
@@ -4717,15 +4717,6 @@
 }
 
 /*
- * Removes all rows from a container.
- * Parameters:
- *       handle: Handle to the window (widget) to be cleared.
- */
-void dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight)
-{
-}
-
-/*
  * Scrolls container up or down.
  * Parameters:
  *       handle: Handle to the window (widget) to be scrolled.
--- a/os2/dw.c	Mon Mar 31 08:53:46 2003 +0000
+++ b/os2/dw.c	Mon Mar 31 09:18:00 2003 +0000
@@ -3908,6 +3908,7 @@
 	WinSetPointerPos(HWND_DESKTOP, x, dw_screen_height() - y);
 }
 
+
 /*
  * Create a container object to be packed.
  * Parameters:
@@ -5884,6 +5885,12 @@
 		WinSendMsg(handle, CM_SETCNRINFO, MPFROMP(&cnri),  MPFROMLONG(CMA_PFIELDINFOLAST | CMA_XVERTSPLITBAR));
 	}
 
+	cnri.flWindowAttr = CV_DETAIL | CV_MINI | CA_DETAILSVIEWTITLES;
+	cnri.slBitmapOrIcon.cx = 16;
+	cnri.slBitmapOrIcon.cy = 16;
+
+	WinSendMsg(handle, CM_SETCNRINFO, &cnri, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON));
+
 	free(offStruct);
 	return TRUE;
 }
@@ -6339,22 +6346,6 @@
 }
 
 /*
- * Removes all rows from a container.
- * Parameters:
- *       handle: Handle to the window (widget) to be cleared.
- */
-void API dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight)
-{
-	CNRINFO cnrinfo;
-
-	cnrinfo.flWindowAttr = flags;
-	cnrinfo.slBitmapOrIcon.cx = iconwidth;
-	cnrinfo.slBitmapOrIcon.cy = iconheight;
-
-	WinSendMsg(handle, CM_SETCNRINFO, &cnrinfo, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON));
-}
-
-/*
  * Starts a new query of a container.
  * Parameters:
  *       handle: Handle to the window (widget) to be queried.
--- a/win/dw.c	Mon Mar 31 08:53:46 2003 +0000
+++ b/win/dw.c	Mon Mar 31 09:18:00 2003 +0000
@@ -6371,15 +6371,6 @@
 }
 
 /*
- * Removes all rows from a container.
- * Parameters:
- *       handle: Handle to the window (widget) to be cleared.
- */
-void API dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight)
-{
-}
-
-/*
  * Starts a new query of a container.
  * Parameters:
  *       handle: Handle to the window (widget) to be queried.