PROGRAM NO WRITE A PROGRAM FOR A MENU EDITOR ADDING A MENU ITEM AND DISPLAYING THE MESSAGE.

STEP 1 USING MENU EDITOR CLICK ON THE RESOURCE VIEW THIS OPENS THE MENU’S PROGRAM RESOURCE FOLDER. FIND OUT THE FOLDER MARKED MENU OPEN IT THEN DOUBLE CLIKC ON THE ENTRY IN THAT FOLDER.,IDR)MAINFRAME BELOW SNAPSHOT WILL APPEAR

STEP 2 ADDING A NEW MENU ITEM CLICK ON THE PRINT PREVIEW MENU ITEM PRESS INSERT KEY,BLANK MENU ITEM APPEAR WRITE CAPTION PRINT WELCOME AND CLOSE THE DIALOB BOX.

STEP 3 CONNECTING MENU ITEM TO CODE OPEN CLASS WIZARD SET THE FOLLOWING OPTIONS PROJECT :-NAME OF YOUR PROJECT CLASS NAME :-VIEW OBJECT ID ID_FILE_PRINT_WELCOME MSG COMMAND :-COMMAND(DOUBLE CLICK ON IT) A DIALOG BOX APPEARS ,CLICK OK

STEP 4 OPEN DOCUMENT CLASS IN PUBLIC SECTION DECLARE VARIABLE

STEP 5 INITIALISE EMPTY STRING IN CONSTRUCTOR OF DOCUMENT CLASS

STEP6 OPEN ONFILEPRINTWELCOME METHOD IN VIEW CLASS AND WRITE THE CODE

STEP7 OPEN ONDRAW METHOD OF VIEW CLASS AND WRITE THE CODE

OUTPUT

Sign up to vote on this title
UsefulNot useful