Mercurial > dwindows
comparison os2/dw.c @ 119:1cad81b7cc4c
Implemented initial splitbar code on Unix. And made some fixes for
setting the ID on all platforms, but specifically windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 19 Oct 2002 06:36:41 +0000 |
parents | d785ee5adf02 |
children | 63f61a702b17 |
comparison
equal
deleted
inserted
replaced
118:c170181668b7 | 119:1cad81b7cc4c |
---|---|
6701 * topleft: Handle to the window to be top or left. | 6701 * topleft: Handle to the window to be top or left. |
6702 * bottomright: Handle to the window to be bottom or right. | 6702 * bottomright: Handle to the window to be bottom or right. |
6703 * Returns: | 6703 * Returns: |
6704 * A handle to a splitbar window or NULL on failure. | 6704 * A handle to a splitbar window or NULL on failure. |
6705 */ | 6705 */ |
6706 HWND dw_splitbar_new(int type, HWND topleft, HWND bottomright) | 6706 HWND dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id) |
6707 { | 6707 { |
6708 HWND tmp = WinCreateWindow(HWND_OBJECT, | 6708 HWND tmp = WinCreateWindow(HWND_OBJECT, |
6709 SplitbarClassName, | 6709 SplitbarClassName, |
6710 NULL, | 6710 NULL, |
6711 WS_VISIBLE, | 6711 WS_VISIBLE, |
6712 0,0,2000,1000, | 6712 0,0,2000,1000, |
6713 NULLHANDLE, | 6713 NULLHANDLE, |
6714 HWND_TOP, | 6714 HWND_TOP, |
6715 0L, | 6715 id, |
6716 NULL, | 6716 NULL, |
6717 NULL); | 6717 NULL); |
6718 if(tmp) | 6718 if(tmp) |
6719 { | 6719 { |
6720 HWND tmpbox = dw_box_new(BOXVERT, 0); | 6720 HWND tmpbox = dw_box_new(BOXVERT, 0); |