Mercurial > dwindows
comparison os2/dw.c @ 523:b2065b0c39c1
Minor MDI fixes, tried to fix the y-axis problem for OS/2 boxes but it is
a bit more complex than I originally thought.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 16 Mar 2004 10:47:23 +0000 |
parents | caa7ed17c132 |
children | d3ce0afa6cf5 |
comparison
equal
deleted
inserted
replaced
522:29547598b909 | 523:b2065b0c39c1 |
---|---|
3973 * id: An ID to be used with dw_window_from_id or 0L. | 3973 * id: An ID to be used with dw_window_from_id or 0L. |
3974 */ | 3974 */ |
3975 HWND API dw_mdi_new(unsigned long id) | 3975 HWND API dw_mdi_new(unsigned long id) |
3976 { | 3976 { |
3977 HWND hwndframe; | 3977 HWND hwndframe; |
3978 | 3978 ULONG back = CLR_DARKGRAY; |
3979 id = id; /* keep compiler happy */ | 3979 |
3980 hwndframe = WinCreateWindow(HWND_OBJECT, | 3980 hwndframe = WinCreateWindow(HWND_OBJECT, |
3981 WC_FRAME, | 3981 WC_FRAME, |
3982 NULL, | 3982 NULL, |
3983 WS_VISIBLE | WS_CLIPCHILDREN | | 3983 WS_VISIBLE | WS_CLIPCHILDREN | |
3984 FS_NOBYTEALIGN, | 3984 FS_NOBYTEALIGN, |
3985 0,0,2000,1000, | 3985 0,0,2000,1000, |
3986 NULLHANDLE, | 3986 NULLHANDLE, |
3987 HWND_TOP, | 3987 HWND_TOP, |
3988 0L, | 3988 id, |
3989 NULL, | 3989 NULL, |
3990 NULL); | 3990 NULL); |
3991 /* Make the MDI Client area the same color as Windows and Unix */ | |
3992 WinSetPresParam(hwndframe, PP_BACKGROUNDCOLORINDEX, sizeof(ULONG), &back); | |
3991 return hwndframe; | 3993 return hwndframe; |
3992 } | 3994 } |
3993 | 3995 |
3994 /* | 3996 /* |
3995 * Create a bitmap object to be packed. | 3997 * Create a bitmap object to be packed. |