#include #define IDM_QUIT 101 #define IDM_FACTORIAL 110 #define IDM_ABOUT 200 #define IDC_LIST1 1001 DEMOMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_QUIT END POPUP "&Numeric Demo" BEGIN MENUITEM "&Factorials", IDM_FACTORIAL END POPUP "&Help" BEGIN MENUITEM "&About Lahey Demo", IDM_ABOUT END END AboutBox DIALOG 22, 17, 144, 75 CAPTION "About Lahey Demo" STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU BEGIN CTEXT "Lahey Computer Systems, Inc.", -1, 0, 5, 144, 8 CTEXT "Windows Demo", -1, 0, 14, 144, 8 CTEXT "Version 1.0", -1, 0, 34, 144, 8 CONTROL "OK", IDOK, "BUTTON", WS_GROUP, 56, 51, 32, 14 END Results DIALOG 10, 10, 175, 95 STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU FONT 8, "MS Courier" BEGIN CONTROL "List1", IDC_LIST1, "ListBox", WS_TABSTOP | WS_BORDER | WS_VSCROLL, 0,0,175,100 END