comparison os2/dw.c @ 58:5c66a108aa47

Fixed example test app at the bottom of the source to use new dw_init syntax.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 21 Nov 2001 23:37:15 +0000
parents b6948eac375a
children 61869769c050
comparison
equal deleted inserted replaced
57:1ed95c8ec2ff 58:5c66a108aa47
6803 #endif 6803 #endif
6804 6804
6805 /* 6805 /*
6806 * Let's demonstrate the functionality of this library. :) 6806 * Let's demonstrate the functionality of this library. :)
6807 */ 6807 */
6808 int main(void) 6808 int main(int argc, char *argv[])
6809 { 6809 {
6810 ULONG flStyle = DW_FCF_SYSMENU | DW_FCF_TITLEBAR | 6810 ULONG flStyle = DW_FCF_SYSMENU | DW_FCF_TITLEBAR |
6811 DW_FCF_SHELLPOSITION | DW_FCF_TASKLIST | DW_FCF_DLGBORDER; 6811 DW_FCF_SHELLPOSITION | DW_FCF_TASKLIST | DW_FCF_DLGBORDER;
6812 int pageid; 6812 int pageid;
6813 6813
6814 dw_init(TRUE); 6814 dw_init(TRUE, argc, argv);
6815 6815
6816 /* Try a little server dialog. :) */ 6816 /* Try a little server dialog. :) */
6817 mainwindow = dw_window_new(HWND_DESKTOP, "Server", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX); 6817 mainwindow = dw_window_new(HWND_DESKTOP, "Server", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX);
6818 6818
6819 lbbox = dw_box_new(BOXVERT, 10); 6819 lbbox = dw_box_new(BOXVERT, 10);