www.pudn.com > helpview.zip > Menu.h, change:1997-10-15,size:2518b


/* 
  
Copyright 1997 Willows Software, Inc.  
 
This library is free software; you can redistribute it and/or 
modify it under the terms of the GNU Library General Public License as 
published by the Free Software Foundation; either version 2 of the 
License, or (at your option) any later version. 
 
This library is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
Library General Public License for more details. 
 
You should have received a copy of the GNU Library General Public 
License along with this library; see the file COPYING.LIB.  If 
not, write to the Free Software Foundation, Inc., 675 Mass Ave, 
Cambridge, MA 02139, USA. 
 
*/ 
 
/************************************************************************* 
* 
* MENU.H 
* Menu routines.      
* 
* Author: Paul E. Kissel 
* 
**************************************************************************/ 
 
#ifndef MENU_H 
#define MENU_H 
 
/*********************************** 
** 
**  System Includes 
** 
***********************************/ 
 
#include <windows.h> 
 
 
/*********************************** 
** 
**  Shared Defines 
** 
***********************************/ 
                 
/* Handle to the the menu support system. */ 
typedef HGLOBAL HMENUSYS; 
 
/* Maximum number of characters for a menu entry. */ 
#define MAX_MENU_ID      100               
#define MAX_MENUITEM_ID  100               
#define MAX_MENU_TEXT    100               
 
                 
/*********************************** 
** 
**  Shared Function Prototypes 
** 
***********************************/ 
BOOL StartMenuSupport( HWND hWnd, HWND hDataWnd ); 
void StopMenuSupport( HWND hWnd ); 
BOOL MenuSelected( HWND hWnd, WORD MenuID ); 
BOOL MyCreatePopup 
(  
  HWND hWnd,  
  LPSTR lpMenuID, 
  LPSTR lpMenuText, 
  short int nPosition 
); 
BOOL MyInsertMenu 
(  
  HWND hWnd,  
  LPSTR lpMenuID, 
  LPSTR lpItemID, 
  LPSTR lpItemText, 
  LPSTR lpMacro, 
  short int nPosition 
); 
BOOL MyRemoveMenu 
(  
  HWND hWnd, 
  LPSTR lpItemID 
); 
void DeleteAllMenus( HWND hWnd ); 
BOOL MyEnableMenuItem 
(  
  HWND hWnd, 
  LPSTR lpItemID, 
  BOOL bEnabled 
); 
BOOL MyCheckMenuItem 
(  
  HWND hWnd, 
  LPSTR lpItemID, 
  BOOL bChecked 
); 
BOOL ChangeItemBinding 
(  
  HWND hWnd, 
  LPSTR lpItemID, 
  LPSTR lpMacro  
); 
 
BOOL InsertMenuSeparator 
(  
  HWND hWnd,  
  LPSTR lpMenuID, 
  short int nPosition 
); 
 
 
#endif