Ignore:
Timestamp:
Aug 6, 2000, 10:31:01 PM (25 years ago)
Author:
sandervl
Message:

put back old toolbar+tooltips code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/toolbar.h

    r3955 r3963  
    1 /* $Id: toolbar.h,v 1.7 2000-08-06 09:32:30 sandervl Exp $ */
     1/* $Id: toolbar.h,v 1.8 2000-08-06 20:31:01 sandervl Exp $ */
     2
    23/*
    34 * Toolbar class extra info
    45 *
    56 * Copyright 1998 Eric Kohl
     7 * Copyright 1999 Christoph Bratschi
    68 */
    79
     
    911#define __WINE_TOOLBAR_H
    1012
    11 #include "commctrl.h"
    12 #include "windef.h"
     13#define MAXTOOLNAME 100 //max length of TBBUTTON_INFO.pszName
    1314
    1415typedef struct tagTBUTTON_INFO
     
    2122    INT iString;
    2223
     24    //for our needs
    2325    BOOL bHot;
    2426    INT nRow;
    2527    RECT rect;
    26 } TBUTTON_INFO;
     28    //Customize dialog
     29    BOOL   bDelete; //can delete
     30    LPWSTR pszName;
     31    INT    nCustomID;
     32} TBUTTON_INFO;
    2733
    2834
    2935typedef struct tagTOOLBAR_INFO
    3036{
    31     DWORD      dwStructSize;   /* size of TBBUTTON struct */
     37    COMCTL32_HEADER header;
     38
     39    DWORD    dwStructSize;   /* size of TBBUTTON struct */
    3240    INT      nHeight;        /* height of the toolbar */
    3341    INT      nWidth;         /* width of the toolbar */
     
    4452    INT      nNumBitmaps;     /* number of bitmaps */
    4553    INT      nNumStrings;     /* number of strings */
    46     BOOL     bUnicode;        /* ASCII (FALSE) or Unicode (TRUE)? */
    4754    BOOL     bCaptured;       /* mouse captured? */
    4855    INT      nButtonDown;
     
    5158    HFONT    hFont;           /* text font */
    5259    HIMAGELIST himlInt;         /* image list created internally */
    53     HIMAGELIST himlDef;         /* default image list */
     60    HIMAGELIST himlDef;         /* default image list for TB_SETIMAGELIST*/
    5461    HIMAGELIST himlHot;         /* hot image list */
    5562    HIMAGELIST himlDis;         /* disabled image list */
    5663    HWND     hwndToolTip;     /* handle to tool tip control */
    57     HWND     hwndNotify;      /* handle to the window that gets notifications */
    5864    BOOL     bTransparent;    /* background transparency flag */
    5965    BOOL     bAutoSize;       /* auto size deadlock indicator */
    6066    BOOL     bAnchor;         /* anchor highlight enabled */
    61     DWORD      dwExStyle;       /* extended toolbar style */
    62     DWORD      dwDTFlags;       /* DrawText flags */
     67    DWORD    dwExStyle;       /* extended toolbar style */
     68    DWORD    dwDTFlags;       /* DrawText flags */
    6369
    64     COLORREF   clrInsertMark;   /* insert mark color */
     70    COLORREF clrInsertMark;   /* insert mark color */
    6571    RECT     rcBound;         /* bounding rectangle */
    66     INT      iVersion;
    6772
    6873    TBUTTON_INFO *buttons;      /* pointer to button array */
    6974    LPWSTR       *strings;      /* pointer to string array */
     75
     76    //Customize dialog
     77    HWND          hwndToolbar;
     78    TBUTTON_INFO* oldButtons;
     79    INT           nNumOldButtons;
     80    INT           nMaxCustomID;
     81    BOOL          changed;
    7082} TOOLBAR_INFO;
    7183
    72 
    73 extern BOOL WINAPI TBARCUST_DialogProc (HWND, UINT, WPARAM, LPARAM);
    7484
    7585extern VOID TOOLBAR_Register (VOID);
     
    7787
    7888#endif  /* __WINE_TOOLBAR_H */
     89
Note: See TracChangeset for help on using the changeset viewer.