comparison dwtest.c @ 1920:31179c5a3c5a

Change DEPRECATED to DW_INCLUDE_DEPRECATED in dwtest.c so if you build with DW_INCLUDE_DEPRECATED both the library and the test program include the deprecated code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Sep 2016 23:30:53 +0000
parents 71780cf68aa2
children a2931caa3422
comparison
equal deleted inserted replaced
1919:78a65391dbcb 1920:31179c5a3c5a
1417 dw_window_redraw( filetoolbarbox ); 1417 dw_window_redraw( filetoolbarbox );
1418 dw_window_redraw( mainwindow ); 1418 dw_window_redraw( mainwindow );
1419 } 1419 }
1420 } 1420 }
1421 1421
1422 #ifdef DEPRECATED 1422 #ifdef DW_INCLUDE_DEPRECATED
1423 void mdi_add(void) 1423 void mdi_add(void)
1424 { 1424 {
1425 HWND mdibox, mdi, mdi1w, mdi1box, ef, mdi2w, mdi2box, bb; 1425 HWND mdibox, mdi, mdi1w, mdi1box, ef, mdi2w, mdi2box, bb;
1426 1426
1427 /* create a box to pack into the notebook page */ 1427 /* create a box to pack into the notebook page */
1705 ULONG notebookpage1; 1705 ULONG notebookpage1;
1706 ULONG notebookpage2; 1706 ULONG notebookpage2;
1707 ULONG notebookpage3; 1707 ULONG notebookpage3;
1708 ULONG notebookpage4; 1708 ULONG notebookpage4;
1709 ULONG notebookpage5; 1709 ULONG notebookpage5;
1710 #ifdef DEPRECATED 1710 #ifdef DW_INCLUDE_DEPRECATED
1711 ULONG notebookpage6; 1711 ULONG notebookpage6;
1712 #endif 1712 #endif
1713 ULONG notebookpage7; 1713 ULONG notebookpage7;
1714 ULONG notebookpage8; 1714 ULONG notebookpage8;
1715 ULONG notebookpage9; 1715 ULONG notebookpage9;
1761 notebookpage5 = dw_notebook_page_new( notebook, 1, FALSE ); 1761 notebookpage5 = dw_notebook_page_new( notebook, 1, FALSE );
1762 dw_notebook_pack( notebook, notebookpage5, notebookbox5 ); 1762 dw_notebook_pack( notebook, notebookpage5, notebookbox5 );
1763 dw_notebook_page_set_text( notebook, notebookpage5, "buttons"); 1763 dw_notebook_page_set_text( notebook, notebookpage5, "buttons");
1764 buttons_add(); 1764 buttons_add();
1765 1765
1766 #ifdef DEPRECATED 1766 #ifdef DW_INCLUDE_DEPRECATED
1767 notebookbox6 = dw_box_new( DW_VERT, 5 ); 1767 notebookbox6 = dw_box_new( DW_VERT, 5 );
1768 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE ); 1768 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE );
1769 dw_notebook_pack( notebook, notebookpage6, notebookbox6 ); 1769 dw_notebook_pack( notebook, notebookpage6, notebookbox6 );
1770 dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); 1770 dw_notebook_page_set_text( notebook, notebookpage6, "mdi");
1771 mdi_add(); 1771 mdi_add();