diff dw.h @ 1483:73f2ad84d4ec

Fixed OS/2 windows being shown when setting position/size. Moved the OS/2 specific DW_OS2_NEW_WINDOW flag into os2/dw.c. Deprecated and essentially removed DW_FCF_SHELLPOSITION and DW_FCF_NOBYTEALIGN. These were OS/2 specific and are set automatically now... FCF_SHELLPOSITION was causing the positioning problems that necessitated the window being shown to set the size and position. Right now SHELLPOSITION isn't used at all... causing shell positioning to not work. I hope to have a way to allow shell positioning to work again soon but the idea I had to do this did not work.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 23 Dec 2011 15:58:13 +0000
parents b2235efd9914
children 026c0b4d6ee9
line wrap: on
line diff
--- a/dw.h	Thu Dec 22 14:48:38 2011 +0000
+++ b/dw.h	Fri Dec 23 15:58:13 2011 +0000
@@ -137,9 +137,7 @@
 #define DW_FCF_HORZSCROLL        FCF_HORZSCROLL
 #define DW_FCF_DLGBORDER         FCF_DLGBORDER
 #define DW_FCF_BORDER            FCF_BORDER
-#define DW_FCF_SHELLPOSITION     FCF_SHELLPOSITION
 #define DW_FCF_TASKLIST          FCF_TASKLIST
-#define DW_FCF_NOBYTEALIGN       FCF_NOBYTEALIGN
 #define DW_FCF_NOMOVEWITHOWNER   FCF_NOMOVEWITHOWNER
 #define DW_FCF_SYSMODAL          FCF_SYSMODAL
 #define DW_FCF_HIDEBUTTON        FCF_HIDEBUTTON
@@ -176,8 +174,6 @@
 
 #define DW_BS_NOBORDER           BS_NOBORDER
 
-#define DW_OS2_NEW_WINDOW        1
-
 /* flag values for dw_messagebox() */
 #define DW_MB_OK                 MB_OK
 #define DW_MB_OKCANCEL           MB_OKCANCEL
@@ -352,9 +348,7 @@
 #define DW_FCF_HORZSCROLL        0
 #define DW_FCF_DLGBORDER         0
 #define DW_FCF_BORDER            0
-#define DW_FCF_SHELLPOSITION     0
 #define DW_FCF_TASKLIST          0
-#define DW_FCF_NOBYTEALIGN       0
 #define DW_FCF_NOMOVEWITHOWNER   0
 #define DW_FCF_SYSMODAL          0
 #define DW_FCF_HIDEBUTTON        0
@@ -535,9 +529,7 @@
 #define DW_FCF_HORZSCROLL        WS_HSCROLL
 #define DW_FCF_DLGBORDER         WS_DLGFRAME
 #define DW_FCF_BORDER            WS_BORDER
-#define DW_FCF_SHELLPOSITION     0
 #define DW_FCF_TASKLIST          WS_VSCROLL
-#define DW_FCF_NOBYTEALIGN       0
 #define DW_FCF_NOMOVEWITHOWNER   0
 #define DW_FCF_SYSMODAL          0
 #define DW_FCF_HIDEBUTTON        WS_MINIMIZEBOX
@@ -818,9 +810,7 @@
 #define DW_FCF_HORZSCROLL        0
 #define DW_FCF_DLGBORDER         0
 #define DW_FCF_BORDER            Ph_WM_RENDER_BORDER
-#define DW_FCF_SHELLPOSITION     0
 #define DW_FCF_TASKLIST          0
-#define DW_FCF_NOBYTEALIGN       0
 #define DW_FCF_NOMOVEWITHOWNER   0
 #define DW_FCF_SYSMODAL          0
 #define DW_FCF_HIDEBUTTON        0
@@ -1003,9 +993,7 @@
 #define DW_FCF_HORZSCROLL        (1 << 8)
 #define DW_FCF_DLGBORDER         (1 << 9)
 #define DW_FCF_BORDER            (1 << 10)
-#define DW_FCF_SHELLPOSITION     (1 << 11)
 #define DW_FCF_TASKLIST          (1 << 12)
-#define DW_FCF_NOBYTEALIGN       (1 << 13)
 #define DW_FCF_NOMOVEWITHOWNER   (1 << 14)
 #define DW_FCF_SYSMODAL          (1 << 15)
 #define DW_FCF_HIDEBUTTON        (1 << 16)
@@ -1358,7 +1346,10 @@
 /* Obsolete, should disappear sometime */
 #define BOXHORZ DW_HORZ
 #define BOXVERT DW_VERT
+#define DW_FCF_SHELLPOSITION     0
+#define DW_FCF_NOBYTEALIGN       0
 
+/* Scrolling constants */
 #define DW_SCROLL_UP 0
 #define DW_SCROLL_DOWN 1
 #define DW_SCROLL_TOP 2