source: trunk/Lucide/SOURCE/gui/tb_spl.h @ 33

Last change on this file since 33 was 26, checked in by Eugene Romanenko, 16 years ago

remember nav pane position/visibility

File size: 5.6 KB
Line 
1#ifndef __TB_SPL_H
2#define __TB_SPL_H
3
4// Toolbar and splitter definitions
5
6/*****************************************************/
7/*                   Splitter                        */
8/*****************************************************/
9
10// ¥£šáâà æšï ª« áá  Splitter
11BOOL InitPMSplitterClass( HAB hab );
12
13#define WC_ER_SPLITTER "er.splitter.class"
14
15// Splitter window style definitions
16#define SBS_VSPLIT          0x00000001L   // Vertical splitter
17#define SBS_HSPLIT          0x00000002L   // Horizontal splitter
18#define SBS_FIRSTFIXED      0x00000004L   // First window with fixed size
19#define SBS_SECONDFIXED     0x00000008L   // Second window with fixed size
20#define SBS_FIXED           (SBS_FIRSTFIXED|SBS_SECONDFIXED) // both fixed
21
22// Splitter messages
23
24// SetWindows - 㪠§ë¢ ¥â ®ª­  ª®â®àë¥ ¡ã€ãâ à §€¥«¥­ë ᯫšââ¥à®¬
25#define SBM_SETWINDOWS      (WM_USER+1)
26// HWND firstWindow;
27// HWND secondWindow;
28// (BOOL)WinSendMsg( hwnd, SBM_SETWINDOWS,
29//              MPFROMHWND( firstWindow ), MPFROMHWND( secondWindow ) );
30
31// SetSplitterPos - 㪠§ë¢ ¥â ¯®§šæšî ᯫšââ¥à 
32#define SBM_SETSPLITTERPOS  (WM_USER+2)
33// SHORT splitterPos;
34// (BOOL)WinSendMsg( hwnd, SBM_SETSPLITTERPOS,
35//                   MPFROMSHORT( splitterPos ), MPVOID );
36
37// GetSplitterPos - ¢®§¢à é ¥â ¯®§šæšî ᯫšââ¥à 
38#define SBM_GETSPLITTERPOS  (WM_USER+3)
39// (SHORT)WinSendMsg( hwnd, SBM_GETSPLITTERPOS, MPVOID, MPVOID );
40
41// SetPointers - 㪠§ âì šá¯®«ì§ã¥¬ë¥ ¬ëèš­ë¥ ¯®š­â¥àë.
42//               ¯® 㬮«ç ­šî šá¯®«ì§ãîâáï
43//               ášá⥬­ë¥ SPTR_SIZEWE š SPTR_SIZENS
44#define SBM_SETPOINTERS     (WM_USER+4)
45// HPOINTER ptrWE;
46// HPOINTER ptrNS;
47// (BOOL)WinSendMsg( hwnd, SBM_SETPOINTERS, (MPARAM)ptrWE, (MPARAM)ptrNS );
48
49// SetFixedSize - 㪠§ âì 䚪ášà®¢ ­­ë© à §¬¥à
50#define SBM_SETFIXEDSIZE    (WM_USER+5)
51// SHORT size;
52// (BOOL)WinSendMsg( hwnd, SBM_SETFIXEDSIZE, MPFROMSHORT( size ), MPVOID );
53
54// Control notification code, splitter pos changed
55// MP1 - (id, SBN_POSITIONCHANGED)  MP2 - (newpos, oldpos)
56#define SBN_POSITIONCHANGED     1
57
58/*****************************************************/
59/*                   Toolbar                         */
60/*****************************************************/
61
62// ¥£šáâà æšï ª« áá  Toolbar
63
64BOOL InitPMToolbarClass( HAB hab );
65
66#define WC_ER_TOOLBAR "er.toolbar.class"
67
68#define DEFAULT_PICTSIZE        20
69//#define DEFAULT_PICTSIZE        40
70#define TOOLBAR_HEIGHT_ADD      8
71
72
73// Toolbar messages
74
75// AddButton - €®¡ ¢«ï¥â ª­®¯ªã ­  âã«¡ à
76#define TBM_ADDBUTTON       (WM_USER+1)
77// AddBtnStruct *bs;
78// WinSendMsg( hwnd, TBM_ADDBUTTON, (MPARAM)bs, MPVOID );
79
80// AddSeparator - €®¡ ¢«ï¥â ¯®«®áªã/à §€¥«šâ¥«ì ­  âã«¡ à
81#define TBM_ADDSEPARATOR    (WM_USER+2)
82// WinSendMsg( hwnd, TBM_ADDSEPARATOR, MPVOID, MPVOID );
83
84// QueryCheck - ¯à®¢¥àï¥â, ­ Š â  «š ª­®¯ª 
85#define TBM_QUERYCHECK      (WM_USER+3)
86// USHORT cmd;
87// (BOOL)WinSendMsg( hwnd, TBM_QUERYCHECK, MPFROMSHORT(cmd), MPVOID );
88
89// SetCheck - ¯¥à¥¢®€šâ ª­®¯ªã ¢ ­ Š â®¥/®âŠ â®¥ á®áâ®ï­š¥
90#define TBM_SETCHECK        (WM_USER+4)
91// USHORT cmd;
92// BOOL checked;
93// WinSendMsg( hwnd, TBM_SETCHECK, MPFROMSHORT(cmd), (MPARAM)checked );
94
95// EnableItem - à §à¥è ¥â/§ ¯à¥é ¥â ª­®¯ªã
96#define TBM_ENABLEITEM      (WM_USER+5)
97// USHORT cmd;
98// BOOL enable;
99// WinSendMsg( hwnd, TBM_ENABLEITEM, MPFROMSHORT(cmd), (MPARAM)enable );
100
101// SetBubbleText - ãáâ ­ ¢«š¢ ¥â ¢á¯«ë¢ îéãî ¯®€áª §ªã
102#define TBM_SETBUBBLETEXT   (WM_USER+6)
103// USHORT cmd;
104// PCSZ text;
105// WinSendMsg( hwnd, TBM_SETBUBBLETEXT, MPFROMSHORT(cmd), MPFROMP(text) );
106
107// SetPictSize - ãáâ ­ ¢«š¢ ¥â à §¬¥à šá¯®«ì§ã¥¬ëå ¡šâ¬ ¯®¢,
108//               ¯® 㬮«ç ­šî 20 (ª àâš­ªš ª¢ €à â­ë¥)
109#define TBM_SETPICTSIZE     (WM_USER+7)
110// USHORT sz;
111// WinSendMsg( hwnd, TBM_SETPICTSIZE, MPFROMSHORT( sz ), MPVOID );
112
113// AddControl - €®¡ ¢«ï¥â ¯à®š§¢®«ì­ë© ª®­â஫ ­  âã«¡ à
114#define TBM_ADDCONTROL      (WM_USER+8)
115// AddCtrlStruct *cs;
116// WinSendMsg( hwnd, TBM_ADDCONTROL, (MPARAM)cs, MPVOID );
117
118// ‘âàãªâãà , šá¯®«ì§ã¥¬ ï ¯àš €®¡ ¢«¥­šš ª­®¯®ª ­  âã«¡ à
119// ¥šá¯®«ì§ã¥¬ë¥ ¯®«ï €®«Š­ë ¡ëâì § ¯®«­¥­ë §­ ç¥­š¥¬ 0 (NULL)
120struct AddBtnStruct
121{
122    USHORT cmd; // Š®¬ ­€ 
123    // ‚ᯫ뢠îéš© ⥪áâ. ‹š¡® 㪠§ â¥«ì ­  áâபã (bubbleText),
124    // «š¡® áâப  ¢ à¥áãàá å (bubbleRes š bubbleHmod)
125    PSZ bubbleText;
126    USHORT bubbleRes;
127    HMODULE bubbleHmod;
128    // šâ¬ ¯ ¢ à¥áãàá å
129    USHORT pictRes;
130    HMODULE pictHmod;
131    // …á«š ¯àš ­ Š âšš ­  ª­®¯ªã €®«Š­® ¯®ï¢«ïâáï ¬¥­î
132    USHORT menuRes;
133    HMODULE menuHmod;
134
135    BOOL checked; //  Š â  «š ª­®¯ª 
136    BOOL enabled; //  §à¥è¥­  «š ª­®¯ª 
137};
138
139// ‘âàãªâãà , šá¯®«ì§ã¥¬ ï ¯àš €®¡ ¢«¥­šš ª®­â஫®¢ ­  âã«¡ à
140// ¥šá¯®«ì§ã¥¬ë¥ ¯®«ï €®«Š­ë ¡ëâì § ¯®«­¥­ë §­ ç¥­š¥¬ 0 (NULL)
141struct AddCtrlStruct
142{
143    HWND ctrlHandle; // HWND ª®­â஫ 
144    SHORT cx;        // ˜šàš­  ª®­â஫ 
145    SHORT cy;        // ­®«ì «š¡® §­ ç¥­š¥ ¬¥­ìè¥ ­ã«ï
146                     // ¥á«š <0 - â® ª®­â஫ ¡ã€¥â ¯à®€«ñ­ ¢­š§ (for combobox)
147    // ‚ᯫ뢠îéš© ⥪áâ. ‹š¡® 㪠§ â¥«ì ­  áâபã (bubbleText),
148    // «š¡® áâப  ¢ à¥áãàá å (bubbleRes š bubbleHmod)
149    PSZ bubbleText;
150    USHORT bubbleRes;
151    HMODULE bubbleHmod;
152};
153
154//
155// àš¬¥ç ­šï:
156//
157// - àš àšá®¢ ­šš ¡šâ¬ ¯  «¥¢ë© ­šŠ­š© ¯šªá¥«ì § € ñ⠯஧à ç­ë© 梥â.
158//
159// -   ­¥ª®â®àëå áâ àëå ¢š€¥®€à ©¢¥à å àšá®¢ ­š¥ á ¯à®§à ç­®áâìî
160//   ­¥ à ¡®â ¥â. Š àâš­ª  «š¡® çñà­ ï, «š¡® ¡¥§ ¯à®§à ç­®áâš, «š¡®
161//   ášá⥬  ¢¥è ¥âáï. ‚ í⮬ á«ãç ¥ €®¡ ¢ì⥠¢ CONFIG.SYS áâபã
162//   SET ERTOOLBARSAFEDRAW=1 - ¡ã€¥â šá¯®«ì§®¢ âìáï ¬¥€«¥­­®¥
163//   ¯®¯šªá¥«ì­®¥ àšá®¢ ­š¥.   SDD/SNAP àšá®¢ ­š¥ á ¯à®§à ç­®áâìî
164//   ¢á¥£€  à ¡®â ¥â ª®à४⭮.
165//
166
167#endif //__TB_SPL_H
168
Note: See TracBrowser for help on using the repository browser.