--- mstools/samples/deb/toolbar.h 2018/08/09 18:20:39 1.1 +++ mstools/samples/deb/toolbar.h 2018/08/09 18:21:32 1.1.1.2 @@ -1,4 +1,9 @@ // ************************************************************************ +// +// Microsoft Developer Support +// Copyright (c) 1992 Microsoft Corporation +// +// ************************************************************************ // HEADER : ToolBar.H // PURPOSE : A Win32 DLL containing various ToolBar controls // FUNCTIONS : @@ -6,17 +11,22 @@ // TextButtonBar() - generate a text button ToolBar // TextButtonBarProc - processes messages for the TextButtonBarWClass // COMMENTS : +// // ************************************************************************ +#ifndef TOOLBAR_H + + #define TOOLBAR_H + + #define TB_SPACE 0xFFFFFFFF -#define TB_SPACE 0xFFFFFFFF + //-- typedefs + typedef struct TEXTBUTTON_STRUCT { + LPTSTR lpButtonText; // The string that appears on the button + INT idButton; // This id is sent to the window proc + HWND hWndButton; // The returned window handle of the button + } TEXTBUTTON, *LPTEXTBUTTON; -//-- typedefs -typedef struct TEXTBUTTON_STRUCT { - LPTSTR lpButtonText; // The string that appears on the button - INT idButton; // This id is sent to the window proc - HWND hWndButton; // The returned window handle of the button - } TEXTBUTTON, *LPTEXTBUTTON; + //-- prototypes + HWND TextButtonBar( HWND, LPTEXTBUTTON, LPINT ); -//-- prototypes -LRESULT CALLBACK TextButtonBarProc( HWND, UINT, WPARAM, LPARAM ); -HWND TextButtonBar( HWND, LPTEXTBUTTON, LPINT ); +#endif // TOOLBAR_H