Prev Next Up Title Contents Index

Resurssitiedosto

Resurssitiedostossa on esitelty ohjelman menurakenne ja About-dialogin ulkoasu.

apf\mopocad.rc - resurssitiedosto mopocad -esimerkkejä varten

	#include "mopocad.rh"
	
	PAAMENU MENU 
	{
	 POPUP "&File"
	 {
	  MENUITEM "E&xit", CM_FILE_EXIT
	 }
	
	 POPUP "&Help", HELP
	 {
	  MENUITEM "&About", CM_HELP_ABOUT
	 }
	
	}
	
	DLG_ABOUT DIALOG 6, 15, 128, 68
	STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
	CAPTION "About"
	FONT 8, "MS Sans Serif"
	{
	 DEFPUSHBUTTON "Ok", IDOK, 9, 49, 50, 14
	 PUSHBUTTON "Cancel", IDCANCEL, 69, 49, 50, 14
	 ICON "Ikoni", -1, 7, 13, 18, 20
	 LTEXT "MopoCad / C++  VL 14.11.1993", -1, 34, 16, 60, 24
	}
	
	IKONI ICON "mopocad.ico"
	
	PIKA ACCELERATORS 
	{
	 "x", CM_FILE_EXIT, ASCII, ALT
	}


Prev Next Up Title Contents Index