K-Meleon


/* Toolbar Const */

#ifndef min
#define min(x,y) (((x)<(y))?(x):(y))
#endif

// #define TBSTYLE_DROPDOWN        0x0008
//#define TBSTYLE_AUTOSIZE        0x0010
//#define TBSTYLE_NOPREFIX        0x0020 
#define TBSTYLE_REGISTERDROP    0x4000
#define TBSTYLE_TRANSPARENT     0x8000
#define TBSTYLE_EX_DRAWDDARROWS? 0x00000001

/* Rebar Styles */
#define RB_INSERTBAND RB_INSERTBANDA
#define RB_SETBANDINFO RB_SETBANDINFOA

/* CreateWindowEx? Constants */
#define WS_BORDER 0x800000
#define WS_CLIPCHILDREN 0x2000000
#define WS_CLIPSIBLINGS 0x4000000
#define WS_VISIBLE 0x10000000
#define WS_CHILD 0x40000000

#define TB_HITTEST 1093
#define TB_GETDISABLEDIMAGELIST 1079
#define TB_GETHOTIMAGELIST 1077
#define TB_GETIMAGELIST 1073
#define TB_GETRECT 1075
#define TB_GETSTYLE 1081
#define TB_GETTEXTROWS 1085
#define TB_LOADIMAGES 1074
#define TB_SETBUTTONWIDTH 1083
#define TB_SETDISABLEDIMAGELIST 1078
#define TB_SETHOTIMAGELIST 1076
#define TB_SETIMAGELIST 1072
#define TB_SETINDENT 1071
#define TB_SETMAXTEXTROWS 1084
#define TB_SETSTYLE 1080
#define TB_GETANCHORHIGHLIGHT 1098
// #define TB_GETEXTENDEDSTYLE 1109
#define TB_GETHOTITEM 1095
#define TB_GETINSERTMARK 1103
#define TB_GETINSERTMARKCOLOR 1113
#define TB_GETMAXSIZE 1107
#define TB_GETOBJECT 1086
#define TB_GETPADDING 1110
#define TB_INSERTMARKHITTEST 1105
#define TB_MOVEBUTTON 1106
#define TB_SETANCHORHIGHLIGHT 1097
// #define TB_SETEXTENDEDSTYLE 1108
#define TB_SETHOTITEM 1096
#define TB_SETINSERTMARK 1104
#define TB_SETINSERTMARKCOLOR 1112
#define TB_SETPADDING 1111

// BUTTONINFO APIs do NOT support the string pool.
#define TB_GETBUTTONINFOW (WM_USER + 63)
#define TB_SETBUTTONINFOW (WM_USER + 64)
#define TB_GETBUTTONINFOA (WM_USER + 65)
#define TB_SETBUTTONINFOA (WM_USER + 66)
#ifdef UNICODE
#define TB_GETBUTTONINFO TB_GETBUTTONINFOW
// #define TB_SETBUTTONINFO TB_SETBUTTONINFOW
#else
#define TB_GETBUTTONINFO TB_GETBUTTONINFOA
// #define TB_SETBUTTONINFO TB_SETBUTTONINFOA
#endif



#define TBSTATE_CHECKED 1
#define TBSTATE_ENABLED 4
#define TBSTATE_HIDDEN 8
#define TBSTATE_INDETERMINATE 16
#define TBSTATE_PRESSED 2
#define TBSTATE_WRAP 32

#define RBBS_NOCHEVRON 0x00000200 

/*
typedef struct tagNMTOOLBAR {
    NMHDR  hdr;
    int  iItem;
    TBBUTTON  tbButton;
    int  cchText;
    LPTSTR  pszText;
    RECT  rcButton;
} NMTOOLBAR, *LPNMTOOLBAR;
*/

#define TBN_DROPDOWN (TBN_FIRST - 10)
#define TBN_GETOBJECT (TBN_FIRST - 12)
#define TBN_HOTITEMCHANGE (TBN_FIRST - 13)
#define TBN_DRAGOUT (TBN_FIRST - 14)
#define TBN_DELETINGBUTTON (TBN_FIRST - 15)
#define TBN_GETDISPINFOA (TBN_FIRST - 16)
#define TBN_GETDISPINFOW (TBN_FIRST - 17)
#define TBN_GETINFOTIPA (TBN_FIRST - 18)
#define TBN_GETINFOTIPW (TBN_FIRST - 19)

/*
typedef struct tagTVITEMEX {
    UINT  mask;
    HTREEITEM  hItem;
    UINT  state;
    UINT  stateMask;
    LPTSTR  pszText;
    int  cchTextMax;
    int  iImage;
    int  iSelectedImage;
    int  cChildren;
    LPARAM  lParam;
    int  iIntegral;
} TVITEMEX, *LPTVITEMEX;

typedef struct tagTVINSERTSTRUCT {
    HTREEITEM hParent;
    HTREEITEM hInsertAfter;
#if (_WIN32_IE >= 0x0400)
    union
    {
        TVITEMEX itemex;
        TVITEM item;
    } DUMMYUNIONNAME;
#else
    TVITEM item;
#endif
} TVINSERTSTRUCT, *LPTVINSERTSTRUCT;

*/

typedef struct _SHITEMID {
    USHORT cb;
    BYTE abID1?;
} SHITEMID;


typedef struct _ITEMIDLIST { 
  SHITEMID mkid;
} ITEMIDLIST, * LPITEMIDLIST; 
typedef const ITEMIDLIST * LPCITEMIDLIST; 


#define CSIDL_FAVORITES 0x6

HRESULT SHGetSpecialFolderLocation?(      
    HWND hwndOwner,
    int nFolder,
    LPITEMIDLIST* ppidl
);

/*
#define CBEM_INSERTITEMW (WM_USER + 11)
#define CBEM_SETITEMW (WM_USER + 12)
#define CBEM_GETITEMW (WM_USER + 13)
#define CBEM_INSERTITEM CBEM_INSERTITEMW
#define CBEM_SETITEM CBEM_SETITEMW
#define CBEM_GETITEM CBEM_GETITEMW
*/

#define ID_APP_EXIT?                     0xE141

/*
typedef struct tagTVHITTESTINFO {
    POINT pt;
    UINT flags;
    HTREEITEM hItem;
} TVHITTESTINFO, *LPTVHITTESTINFO;
*/

#define TVGN_LASTVISIBLE 0xA
#define TreeView_GetLastVisible?(w)   TreeView_GetNextItem?(w,NULL,TVGN_LASTVISIBLE)
#define TreeView_SetInsertMark?(hwndTV,htiInsert,fAfter) SendMessage?((HWND) hwndTV, (UINT) TVM_SETINSERTMARK, (WPARAM) fAfter, (LPARAM) htiInsert)


K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.