Mercurial > dwindows
changeset 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 |
files | dw.hpp dwtestoo.cpp |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
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); }
--- a/dwtestoo.cpp Wed Dec 28 11:23:51 2022 +0000 +++ b/dwtestoo.cpp Wed Dec 28 21:13:04 2022 +0000 @@ -208,7 +208,7 @@ if(!hpm) { snprintf(buf, 15, "%6.6d", i+row); - pixmap->DrawText(0, y, buf); + pixmap1->DrawText(0, y, buf); } pLine = lp[i+row]; pixmap->DrawText(0, y, pLine+col); @@ -948,7 +948,7 @@ // Create Notebook Page 2 - Render notebookbox = new DW::Box(DW_VERT, 5); CreateRender(notebookbox); - notebookpage = notebook->PageNew(0, TRUE); + notebookpage = notebook->PageNew(); notebook->Pack(notebookpage, notebookbox); notebook->PageSetText(notebookpage, "render");