#include #include "list.h" imgMainIcon ICON "mainIcon.ico" //Label objects have different names depending on the text alignment //LTEXT and CTEXT mean "left" and "centre", and I'm assuming RTEXT would be for right digList DIALOG DISCARDABLE 0, 0, 207, 156 STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "My favourite items" FONT 8, "MS Sans Serif" { LTEXT "Item: ", NULL_POINTER, 7, 10, 14, 8 PUSHBUTTON "&Add", cmdAdd, 150, 30, 50, 14 //Button PUSHBUTTON "&Remove", cmdRemove, 150, 47, 50, 14 PUSHBUTTON "&Clear", cmdClear, 150, 63, 50, 14 PUSHBUTTON "E&xit", cmdClose, 150, 120, 50, 14 //Textfield, I'm assuming the last argument means to scroll the cursor when entering lengthy text EDITTEXT txtItem, 25, 7, 120, 14, ES_AUTOHSCROLL //Listbox LISTBOX lstItems, 7, 25, 138, 106, LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP }