Mercurial > dwindows
comparison dwtest.c @ 2095:a3e176450077
OS/2: Fix a warning in dw_notication_new(), return 0 not NULL.
Also move dw_init() above the feature tests. PMPrintf support gets loaded
in dw_init() so the feature test results don't display if called before.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 11 Jun 2020 03:22:27 +0000 |
parents | 8de0a767c0e5 |
children | 296a3872ddd9 |
comparison
equal
deleted
inserted
replaced
2094:8de0a767c0e5 | 2095:a3e176450077 |
---|---|
1792 ULONG notebookpage7; | 1792 ULONG notebookpage7; |
1793 ULONG notebookpage8; | 1793 ULONG notebookpage8; |
1794 ULONG notebookpage9; | 1794 ULONG notebookpage9; |
1795 DWFEATURE feat; | 1795 DWFEATURE feat; |
1796 | 1796 |
1797 /* Initialize the Dynamic Windows engine */ | |
1798 dw_init(TRUE, argc, argv); | |
1799 | |
1797 /* Test all the features and display the results */ | 1800 /* Test all the features and display the results */ |
1798 for(feat=0;feat<DW_FEATURE_MAX && DWFeatureList[feat];feat++) | 1801 for(feat=0;feat<DW_FEATURE_MAX && DWFeatureList[feat];feat++) |
1799 { | 1802 { |
1800 int result = dw_feature_get(feat); | 1803 int result = dw_feature_get(feat); |
1801 char *status = "Unsupported"; | 1804 char *status = "Unsupported"; |
1805 else if(result > 0) | 1808 else if(result > 0) |
1806 status = "Enabled"; | 1809 status = "Enabled"; |
1807 | 1810 |
1808 dw_debug("%s: %s (%d)\n", DWFeatureList[feat], status, result); | 1811 dw_debug("%s: %s (%d)\n", DWFeatureList[feat], status, result); |
1809 } | 1812 } |
1810 | |
1811 /* Initialize the Dynamic Windows engine */ | |
1812 dw_init(TRUE, argc, argv); | |
1813 | 1813 |
1814 /* Create our window */ | 1814 /* Create our window */ |
1815 mainwindow = dw_window_new( HWND_DESKTOP, "dwindows test UTF8 中国語 (繁体) cañón", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX); | 1815 mainwindow = dw_window_new( HWND_DESKTOP, "dwindows test UTF8 中国語 (繁体) cañón", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX); |
1816 dw_window_set_icon(mainwindow, fileicon); | 1816 dw_window_set_icon(mainwindow, fileicon); |
1817 | 1817 |