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


/* 
  
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. 
 
*/ 
 
/************************************************************************* 
* 
*	BTNBAR.H 
*   Button bar routines.       
* 
*	Author: Paul E. Kissel 
* 
**************************************************************************/ 
 
#ifndef BTNBAR_H 
#define BTNBAR_H 
 
/*********************************** 
** 
**  System Includes 
** 
***********************************/ 
 
#include <windows.h> 
 
 
/*********************************** 
** 
**  Shared Defines 
** 
***********************************/ 
 
#define MAX_BUTTON_ID     51  /* Max. length of button ID string. */ 
#define MAX_BUTTON_TEXT   30  /* Max. length of button text string. */ 
 
 
/*********************************** 
** 
**  Shared Function Prototypes 
** 
***********************************/ 
 
LONG FAR PASCAL ButtonWndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ); 
 
BOOL RegisterButtonBarClass( HINSTANCE hInstance ); 
 
BOOL AddBarButton 
(  
  HINSTANCE hInstance, 
  HWND hButtonBarWnd,  
  LPSTR lpButtonText,  
  LPSTR lpButtonID,  
  LPSTR lpMacro  
); 
 
BOOL DeleteBarButton 
(  
  HWND hButtonBarWnd,  
  LPSTR lpButtonID 
); 
 
BOOL ChangeButtonsMacro 
(  
  HWND hButtonBarWnd,  
  LPSTR lpButtonID, 
  LPSTR lpMacro  
); 
 
BOOL EnableButton 
(  
  HWND  hButtonBarWnd,  
  LPSTR lpButtonID, 
  BOOL  bEnable  
); 
 
HWND CreateButtonBarWnd( HWND hDataWnd, HWND hParentWnd, HINSTANCE hInstance ); 
 
HWND GetButtonWindow( HWND hButtonBarWnd, LPSTR lpButtonID ); 
 
void RemoveAllButtons( HWND hButtonBarWnd ); 
 
#endif