From c25f8d007d1175bce204b304f80df7e931ce233a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 26 Apr 2011 22:57:23 +0000 Subject: [PATCH] No changes, just replace #defines with enums in printing sample. This makes it more convenient to define menu ids with consecutive values as will be done in the next commit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/printing/printing.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/samples/printing/printing.h b/samples/printing/printing.h index 264a49c3b4..3c0a894940 100644 --- a/samples/printing/printing.h +++ b/samples/printing/printing.h @@ -104,16 +104,18 @@ private: // constants: +enum +{ + WXPRINT_PAGE_SETUP = 103, -#define WXPRINT_PAGE_SETUP 103 - -#define WXPRINT_PRINT_PS 105 -#define WXPRINT_PAGE_SETUP_PS 107 -#define WXPRINT_PREVIEW_PS 108 + WXPRINT_PRINT_PS, + WXPRINT_PAGE_SETUP_PS, + WXPRINT_PREVIEW_PS, -#define WXPRINT_ANGLEUP 110 -#define WXPRINT_ANGLEDOWN 111 + WXPRINT_ANGLEUP, + WXPRINT_ANGLEDOWN #ifdef __WXMAC__ - #define WXPRINT_PAGE_MARGINS 112 + , WXPRINT_PAGE_MARGINS #endif +}; -- 2.50.0