Mercurial > dwindows
diff dw.hpp @ 2920:c6b699a441fe
C++: Fix a couple minor errors while attempting to fix Mac crash.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 28 Dec 2022 21:13:04 +0000 |
parents | e609aa6a5b93 |
children | 235fef840df2 |
line wrap: on
line diff
--- a/dw.hpp Wed Dec 28 11:23:51 2022 +0000 +++ b/dw.hpp Wed Dec 28 21:13:04 2022 +0000 @@ -1179,6 +1179,8 @@ void PageDestroy(unsigned long pageid) { dw_notebook_page_destroy(hwnd, pageid); } unsigned long PageGet() { return dw_notebook_page_get(hwnd); } unsigned long PageNew(unsigned long flags, int front) { return dw_notebook_page_new(hwnd, flags, front); } + unsigned long PageNew(unsigned long flags) { return dw_notebook_page_new(hwnd, flags, FALSE); } + unsigned long PageNew() { return dw_notebook_page_new(hwnd, 0, FALSE); } void PageSet(unsigned long pageid) { dw_notebook_page_set(hwnd, pageid); } void PageSetStatusText(unsigned long pageid, const char *text) { dw_notebook_page_set_status_text(hwnd, pageid, text); } void PageSetText(unsigned long pageid, const char *text) { dw_notebook_page_set_text(hwnd, pageid, text); }