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

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

First import

File size: 5.5 KB
RevLine 
[2]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
55/*****************************************************/
56/*                   Toolbar                         */
57/*****************************************************/
58
59// ¥£šáâà æšï ª« áá  Toolbar
60
61BOOL InitPMToolbarClass( HAB hab );
62
63#define WC_ER_TOOLBAR "er.toolbar.class"
64
65#define DEFAULT_PICTSIZE        20
66//#define DEFAULT_PICTSIZE        40
67#define TOOLBAR_HEIGHT_ADD      8
68
69
70// Toolbar messages
71
72// AddButton - €®¡ ¢«ï¥â ª­®¯ªã ­  âã«¡ à
73#define TBM_ADDBUTTON       (WM_USER+1)
74// AddBtnStruct *bs;
75// WinSendMsg( hwnd, TBM_ADDBUTTON, (MPARAM)bs, MPVOID );
76
77// AddSeparator - €®¡ ¢«ï¥â ¯®«®áªã/à §€¥«šâ¥«ì ­  âã«¡ à
78#define TBM_ADDSEPARATOR    (WM_USER+2)
79// WinSendMsg( hwnd, TBM_ADDSEPARATOR, MPVOID, MPVOID );
80
81// QueryCheck - ¯à®¢¥àï¥â, ­ Š â  «š ª­®¯ª 
82#define TBM_QUERYCHECK      (WM_USER+3)
83// USHORT cmd;
84// (BOOL)WinSendMsg( hwnd, TBM_QUERYCHECK, MPFROMSHORT(cmd), MPVOID );
85
86// SetCheck - ¯¥à¥¢®€šâ ª­®¯ªã ¢ ­ Š â®¥/®âŠ â®¥ á®áâ®ï­š¥
87#define TBM_SETCHECK        (WM_USER+4)
88// USHORT cmd;
89// BOOL checked;
90// WinSendMsg( hwnd, TBM_SETCHECK, MPFROMSHORT(cmd), (MPARAM)checked );
91
92// EnableItem - à §à¥è ¥â/§ ¯à¥é ¥â ª­®¯ªã
93#define TBM_ENABLEITEM      (WM_USER+5)
94// USHORT cmd;
95// BOOL enable;
96// WinSendMsg( hwnd, TBM_ENABLEITEM, MPFROMSHORT(cmd), (MPARAM)enable );
97
98// SetBubbleText - ãáâ ­ ¢«š¢ ¥â ¢á¯«ë¢ îéãî ¯®€áª §ªã
99#define TBM_SETBUBBLETEXT   (WM_USER+6)
100// USHORT cmd;
101// PCSZ text;
102// WinSendMsg( hwnd, TBM_SETBUBBLETEXT, MPFROMSHORT(cmd), MPFROMP(text) );
103
104// SetPictSize - ãáâ ­ ¢«š¢ ¥â à §¬¥à šá¯®«ì§ã¥¬ëå ¡šâ¬ ¯®¢,
105//               ¯® 㬮«ç ­šî 20 (ª àâš­ªš ª¢ €à â­ë¥)
106#define TBM_SETPICTSIZE     (WM_USER+7)
107// USHORT sz;
108// WinSendMsg( hwnd, TBM_SETPICTSIZE, MPFROMSHORT( sz ), MPVOID );
109
110// AddControl - €®¡ ¢«ï¥â ¯à®š§¢®«ì­ë© ª®­â஫ ­  âã«¡ à
111#define TBM_ADDCONTROL      (WM_USER+8)
112// AddCtrlStruct *cs;
113// WinSendMsg( hwnd, TBM_ADDCONTROL, (MPARAM)cs, MPVOID );
114
115// ‘âàãªâãà , šá¯®«ì§ã¥¬ ï ¯àš €®¡ ¢«¥­šš ª­®¯®ª ­  âã«¡ à
116// ¥šá¯®«ì§ã¥¬ë¥ ¯®«ï €®«Š­ë ¡ëâì § ¯®«­¥­ë §­ ç¥­š¥¬ 0 (NULL)
117struct AddBtnStruct
118{
119    USHORT cmd; // Š®¬ ­€ 
120    // ‚ᯫ뢠îéš© ⥪áâ. ‹š¡® 㪠§ â¥«ì ­  áâபã (bubbleText),
121    // «š¡® áâப  ¢ à¥áãàá å (bubbleRes š bubbleHmod)
122    PSZ bubbleText;
123    USHORT bubbleRes;
124    HMODULE bubbleHmod;
125    // šâ¬ ¯ ¢ à¥áãàá å
126    USHORT pictRes;
127    HMODULE pictHmod;
128    // …á«š ¯àš ­ Š âšš ­  ª­®¯ªã €®«Š­® ¯®ï¢«ïâáï ¬¥­î
129    USHORT menuRes;
130    HMODULE menuHmod;
131
132    BOOL checked; //  Š â  «š ª­®¯ª 
133    BOOL enabled; //  §à¥è¥­  «š ª­®¯ª 
134};
135
136// ‘âàãªâãà , šá¯®«ì§ã¥¬ ï ¯àš €®¡ ¢«¥­šš ª®­â஫®¢ ­  âã«¡ à
137// ¥šá¯®«ì§ã¥¬ë¥ ¯®«ï €®«Š­ë ¡ëâì § ¯®«­¥­ë §­ ç¥­š¥¬ 0 (NULL)
138struct AddCtrlStruct
139{
140    HWND ctrlHandle; // HWND ª®­â஫ 
141    SHORT cx;        // ˜šàš­  ª®­â஫ 
142    SHORT cy;        // ­®«ì «š¡® §­ ç¥­š¥ ¬¥­ìè¥ ­ã«ï
143                     // ¥á«š <0 - â® ª®­â஫ ¡ã€¥â ¯à®€«ñ­ ¢­š§ (for combobox)
144    // ‚ᯫ뢠îéš© ⥪áâ. ‹š¡® 㪠§ â¥«ì ­  áâபã (bubbleText),
145    // «š¡® áâப  ¢ à¥áãàá å (bubbleRes š bubbleHmod)
146    PSZ bubbleText;
147    USHORT bubbleRes;
148    HMODULE bubbleHmod;
149};
150
151//
152// àš¬¥ç ­šï:
153//
154// - àš àšá®¢ ­šš ¡šâ¬ ¯  «¥¢ë© ­šŠ­š© ¯šªá¥«ì § € ñ⠯஧à ç­ë© 梥â.
155//
156// -   ­¥ª®â®àëå áâ àëå ¢š€¥®€à ©¢¥à å àšá®¢ ­š¥ á ¯à®§à ç­®áâìî
157//   ­¥ à ¡®â ¥â. Š àâš­ª  «š¡® çñà­ ï, «š¡® ¡¥§ ¯à®§à ç­®áâš, «š¡®
158//   ášá⥬  ¢¥è ¥âáï. ‚ í⮬ á«ãç ¥ €®¡ ¢ì⥠¢ CONFIG.SYS áâபã
159//   SET ERTOOLBARSAFEDRAW=1 - ¡ã€¥â šá¯®«ì§®¢ âìáï ¬¥€«¥­­®¥
160//   ¯®¯šªá¥«ì­®¥ àšá®¢ ­š¥.   SDD/SNAP àšá®¢ ­š¥ á ¯à®§à ç­®áâìî
161//   ¢á¥£€  à ¡®â ¥â ª®à४⭮.
162//
163
164#endif //__TB_SPL_H
165
Note: See TracBrowser for help on using the repository browser.