diff os2/dw.c @ 1429:fbaec6e5df63

Added dw_window_get_preferred_size() which attempts to determine the size the system wants for the widget. This is useful when creating nice looking layouts.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 04 Dec 2011 20:11:38 +0000
parents 7826031d48ce
children feb0429278e2
line wrap: on
line diff
--- a/os2/dw.c	Sun Dec 04 19:13:10 2011 +0000
+++ b/os2/dw.c	Sun Dec 04 20:11:38 2011 +0000
@@ -7003,6 +7003,18 @@
 }
 
 /*
+ * Gets the size the system thinks the widget should be.
+ * Parameters:
+ *       handle: Window handle of the item to be back.
+ *       width: Width in pixels of the item or NULL if not needed.
+ *       height: Height in pixels of the item or NULL if not needed.
+ */
+void API dw_window_get_preferred_size(HWND handle, int *width, int *height)
+{
+    _control_size(handle, width, height);
+}
+
+/*
  * Returns the width of the screen.
  */
 int API dw_screen_width(void)