1 #include <windows.h> 2 3 // #include <winnt.h> 4 // #include <WinUser.h> 5 6 // for Windows CE: 7 #include <CommCtrl.h> 8 9 10 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 11 12 #undef m 13 #undef bxs 14 #undef bys 15 #undef bxsDots 16 #undef y 17 #undef xc 18 #undef yc 19 #undef xs 20 #undef ys 21 #undef bx 22 #undef bx1 23 #undef bx2 24 #undef bx3 25 #undef by 26 #undef by1 27 #undef by2 28 #undef by3 29 #undef gSpace 30 #undef gSize 31 #undef marg2 32 #undef marg3 33 34 #undef MY_DIALOG 35 #undef MY_RESIZE_DIALOG 36 #undef MY_PAGE 37 38 #define m 8 39 #define bxs 64 40 #define bys 16 41 #define bxsDots 20 42 43 #define xs (xc + m + m) 44 #define ys (yc + m + m) 45 46 #define bx1 (xs - m - bxs) 47 #define bx2 (bx1 - m - bxs) 48 #define bx3 (bx2 - m - bxs) 49 #define bx bx1 50 51 #define by1 (ys - m - bys) 52 #define by2 (by1 - m - bys) 53 #define by by1 54 55 56 #define MY_MODAL_DIALOG_STYLE STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU 57 58 #define MY_MODAL_RESIZE_DIALOG_STYLE MY_MODAL_DIALOG_STYLE | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SIZEBOX | WS_THICKFRAME 59 60 #define MY_PAGE_STYLE STYLE WS_CHILD | WS_DISABLED | WS_CAPTION 61 62 #define MY_FONT FONT 8, "MS Shell Dlg" 63 64 #define SMALL_PAGE_SIZE_X 120 65 66 // #define MY_DIALOG DIALOG 0, 0, xs, ys MY_MODAL_DIALOG_STYLE MY_FONT 67 // #define MY_RESIZE_DIALOG DIALOG 0, 0, xs, ys MY_MODAL_RESIZE_DIALOG_STYLE MY_FONT 68 #define MY_PAGE DIALOG 0, 0, xs, ys MY_PAGE_STYLE MY_FONT 69 70 #define OK_CANCEL \ 71 DEFPUSHBUTTON "OK", IDOK, bx2, by, bxs, bys \ 72 PUSHBUTTON "Cancel", IDCANCEL, bx1, by, bxs, bys 73 74 75 #define MY_COMBO CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP 76 #define MY_COMBO_SORTED MY_COMBO | CBS_SORT 77 #define MY_COMBO_WITH_EDIT CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP 78 79 #define MY_CHECKBOX "Button", BS_AUTOCHECKBOX | WS_TABSTOP 80 81 #define MY_TEXT_NOPREFIX 8, SS_NOPREFIX 82