JPEGView/Headers/GeneralMenus.h
Aaron Giles 92bdb55672 JPEGView 3.3 for Macintosh
These are the sources for the final official release of JPEGView for the
Mac, back in 1994.
2015-02-05 00:18:10 -08:00

1 line
1.0 KiB
C

/*********************************************************/
/* This source code copyright (c) 1991-2001, Aaron Giles */
/* See the Read Me file for licensing information. */
/* Contact email: mac@aarongiles.com */
/*********************************************************/
#ifndef __GENERALMENUS__
#define __GENERALMENUS__
void MenuBarInit(void);
extern long MakeMenuSelection(short menu, short item);
extern void HandleMenuChoice(long theChoice);
void SaveMenuArea(void);
void RestoreMenuArea(void);
void DisableMenus(void);
void EnableMenus(void);
void AdjustMenus(void);
void AdjustFile(short var);
void AdjustEdit(short var);
Boolean CanSelectScreen(void);
void AdjustView(short var);
void AdjustColor(short var);
void AdjustWindow(short var);
void AddWindowItem(ImageHandle theImage);
void DeleteWindowItem(ImageHandle theImage);
#define MenuEnable(menu, item, enabled) \
if (enabled) EnableItem(menu, item);\
else DisableItem(menu, item)
#define SetMBarHeight(ht) (*(short *)MBarHeight = (ht))
#endif