ReactOS  0.4.13-dev-551-gf37fb1f
misc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef VOID(* ToolbarChangeControlCallback) (HWND hWndToolbar, HWND hWndControl, BOOL Vert)
 

Functions

INT AllocAndLoadString (OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
 
DWORD LoadAndFormatString (IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
 
BOOL StatusBarLoadAndFormatString (IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID,...)
 
BOOL StatusBarLoadString (IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID)
 
INT GetTextFromEdit (OUT LPTSTR lpString, IN HWND hDlg, IN UINT Res)
 
VOID GetError (DWORD err)
 
BOOL ToolbarDeleteControlSpace (HWND hWndToolbar, const TBBUTTON *ptbButton)
 
VOID ToolbarUpdateControlSpaces (HWND hWndToolbar, ToolbarChangeControlCallback ChangeCallback)
 
BOOL ToolbarInsertSpaceForControl (HWND hWndToolbar, HWND hWndControl, INT Index, INT iCmd, BOOL HideVertical)
 
HIMAGELIST InitImageList (UINT NumButtons, UINT StartResource)
 

Typedef Documentation

◆ ToolbarChangeControlCallback

typedef VOID(* ToolbarChangeControlCallback) (HWND hWndToolbar, HWND hWndControl, BOOL Vert)

Definition at line 31 of file misc.h.

Function Documentation

◆ AllocAndLoadString()

INT AllocAndLoadString ( OUT LPTSTR lpTarget,
IN HINSTANCE  hInst,
IN UINT  uID 
)

Definition at line 40 of file misc.c.

43 {
44  INT ln;
45 
47  uID);
48  if (ln++ > 0)
49  {
50  (*lpTarget) = (LPTSTR)LocalAlloc(LMEM_FIXED,
51  ln * sizeof(TCHAR));
52  if ((*lpTarget) != NULL)
53  {
54  INT Ret;
55  if (!(Ret = LoadString(hInst, uID, *lpTarget, ln)))
56  {
57  LocalFree((HLOCAL)(*lpTarget));
58  }
59  return Ret;
60  }
61  }
62  return 0;
63 }
int32_t INT
Definition: typedefs.h:56
CHAR * LPTSTR
Definition: xmlstorage.h:192
smooth NULL
Definition: ftsmooth.c:416
#define LMEM_FIXED
Definition: winbase.h:349
char TCHAR
Definition: xmlstorage.h:189
HINSTANCE hInst
Definition: dxdiag.c:13
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1373
INT LengthOfStrResource(IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:23
#define LoadString
Definition: winuser.h:5685

◆ GetError()

VOID GetError ( DWORD  err)

Definition at line 183 of file misc.c.

184 {
185  LPVOID lpMsgBuf;
186 
187  if (err == 0)
188  err = GetLastError();
189 
193  NULL,
194  err,
196  (LPTSTR) &lpMsgBuf,
197  0,
198  NULL );
199 
200  MessageBox(NULL, lpMsgBuf, _T("Error!"), MB_OK | MB_ICONERROR);
201 
202  LocalFree(lpMsgBuf);
203 }
#define LANG_NEUTRAL
Definition: nls.h:22
#define SUBLANG_DEFAULT
Definition: nls.h:168
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
CHAR * LPTSTR
Definition: xmlstorage.h:192
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
smooth NULL
Definition: ftsmooth.c:416
#define FORMAT_MESSAGE_FROM_SYSTEM
Definition: winbase.h:404
#define _T(x)
Definition: vfdio.h:22
#define FormatMessage
Definition: winbase.h:3609
#define MB_ICONERROR
Definition: winuser.h:781
#define MessageBox
Definition: winuser.h:5688
#define err(...)
#define FORMAT_MESSAGE_IGNORE_INSERTS
Definition: winbase.h:401
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
#define MB_OK
Definition: winuser.h:784
#define MAKELANGID(p, s)
Definition: nls.h:15

◆ GetTextFromEdit()

INT GetTextFromEdit ( OUT LPTSTR  lpString,
IN HWND  hDlg,
IN UINT  Res 
)

Definition at line 164 of file misc.c.

167 {
168  INT len = GetWindowTextLength(GetDlgItem(hDlg, Res));
169  if(len > 0)
170  {
171  GetDlgItemText(hDlg,
172  Res,
173  lpString,
174  len + 1);
175  }
176  else
177  lpString = NULL;
178 
179  return len;
180 }
int32_t INT
Definition: typedefs.h:56
smooth NULL
Definition: ftsmooth.c:416
#define GetDlgItemText
Definition: winuser.h:5651
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
GLenum GLsizei len
Definition: glext.h:6722
#define GetWindowTextLength
Definition: winuser.h:5665

◆ InitImageList()

HIMAGELIST InitImageList ( UINT  NumButtons,
UINT  StartResource 
)

Definition at line 375 of file misc.c.

376 {
378  HIMAGELIST hImageList;
379  UINT i, k;
380  INT Ret;
382 
383  /* Create the toolbar icon image list */
384  hImageList = ImageList_Create(TB_BMP_WIDTH,
387  NumImages,
388  0);
389  if (! hImageList)
390  return NULL;
391 
392  /* Add all icons to the image list */
393  for (i = StartResource, k = 0; k < NumImages; i++, k++)
394  {
397  IMAGE_BITMAP,
398  TB_BMP_WIDTH,
401 
402  Ret = ImageList_AddMasked(hImageList,
403  hBitmap,
404  RGB(255, 255, 254));
405 
407  }
408 
409  return hImageList;
410 
411 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
int32_t INT
Definition: typedefs.h:56
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
HINSTANCE hInstance
Definition: charmap.c:20
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:801
smooth NULL
Definition: ftsmooth.c:416
#define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
Definition: ntbasedef.h:326
#define TB_BMP_WIDTH
Definition: precomp.h:20
#define ILC_COLOR24
Definition: commctrl.h:342
#define RGB(r, g, b)
Definition: wingdi.h:2918
#define TB_BMP_HEIGHT
Definition: precomp.h:21
#define LR_LOADTRANSPARENT
Definition: winuser.h:1083
#define ILC_MASK
Definition: commctrl.h:336
unsigned int UINT
Definition: ndis.h:50
#define IMAGE_BITMAP
Definition: winuser.h:211
#define LoadImage
Definition: winuser.h:5681
INT WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
Definition: imagelist.c:560
static HBITMAP
Definition: button.c:44
static HBITMAP hBitmap
Definition: timezone.c:35
int k
Definition: mpi.c:3369

◆ LoadAndFormatString()

DWORD LoadAndFormatString ( IN HINSTANCE  hInstance,
IN UINT  uID,
OUT LPTSTR lpTarget,
  ... 
)

Definition at line 86 of file misc.c.

90 {
91  DWORD Ret = 0;
93  va_list lArgs;
94 
96  hInstance,
97  uID) != 0)
98  {
99  va_start(lArgs, lpTarget);
100  /* let's use FormatMessage to format it because it has the ability to allocate
101  memory automatically */
103  lpFormat,
104  0,
105  0,
106  (LPTSTR)lpTarget,
107  0,
108  &lArgs);
109  va_end(lArgs);
110 
112  }
113 
114  return Ret;
115 }
#define FORMAT_MESSAGE_FROM_STRING
Definition: winbase.h:402
static INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:60
CHAR * LPTSTR
Definition: xmlstorage.h:192
HINSTANCE hInstance
Definition: charmap.c:20
#define va_end(ap)
Definition: acmsvcex.h:90
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
char * va_list
Definition: acmsvcex.h:78
unsigned long DWORD
Definition: ntddk_ex.h:95
#define FormatMessage
Definition: winbase.h:3609
LPCWSTR lpFormat
Definition: trayclock.cpp:32
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
#define va_start(ap, A)
Definition: acmsvcex.h:91
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ StatusBarLoadAndFormatString()

BOOL StatusBarLoadAndFormatString ( IN HWND  hStatusBar,
IN INT  PartId,
IN HINSTANCE  hInstance,
IN UINT  uID,
  ... 
)

Definition at line 108 of file misc.c.

113 {
114  BOOL Ret = FALSE;
115  LPWSTR lpFormat, lpStr;
116  va_list lArgs;
117 
119  hInstance,
120  uID) > 0)
121  {
122  va_start(lArgs, uID);
123  /* let's use FormatMessage to format it because it has the ability to allocate
124  memory automatically */
126  lpFormat,
127  0,
128  0,
129  (VOID*)&lpStr,
130  0,
131  &lArgs);
132  va_end(lArgs);
133 
134  if (lpStr != NULL)
135  {
137  SB_SETTEXT,
138  (WPARAM)PartId,
139  (LPARAM)lpStr);
140  LocalFree((HLOCAL)lpStr);
141  }
142 
144  }
145 
146  return Ret;
147 }
static BOOL
Definition: misc.c:82
#define FORMAT_MESSAGE_FROM_STRING
Definition: winbase.h:402
UINT_PTR WPARAM
Definition: windef.h:207
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
HINSTANCE hInstance
Definition: charmap.c:20
#define va_end(ap)
Definition: acmsvcex.h:90
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
char * va_list
Definition: acmsvcex.h:78
HWND hStatusBar
Definition: main.cpp:35
#define SB_SETTEXT
Definition: commctrl.h:1921
LPCWSTR lpFormat
Definition: trayclock.cpp:32
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
INT AllocAndLoadString(OUT LPWSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:50
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define va_start(ap, A)
Definition: acmsvcex.h:91
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ StatusBarLoadString()

BOOL StatusBarLoadString ( IN HWND  hStatusBar,
IN INT  PartId,
IN HINSTANCE  hInstance,
IN UINT  uID 
)

Definition at line 150 of file misc.c.

154 {
155  BOOL Ret = FALSE;
156  LPWSTR lpStr;
157 
158  if (AllocAndLoadString(&lpStr,
159  hInstance,
160  uID) > 0)
161  {
163  SB_SETTEXT,
164  (WPARAM)PartId,
165  (LPARAM)lpStr);
166  LocalFree((HLOCAL)lpStr);
167  }
168 
169  return Ret;
170 }
static BOOL
Definition: misc.c:82
UINT_PTR WPARAM
Definition: windef.h:207
HINSTANCE hInstance
Definition: charmap.c:20
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
HWND hStatusBar
Definition: main.cpp:35
#define SB_SETTEXT
Definition: commctrl.h:1921
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
INT AllocAndLoadString(OUT LPWSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:50
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ ToolbarDeleteControlSpace()

BOOL ToolbarDeleteControlSpace ( HWND  hWndToolbar,
const TBBUTTON ptbButton 
)

Definition at line 220 of file misc.c.

222 {
223  if ((ptbButton->fsStyle & TBSTYLE_SEP) &&
224  ptbButton->dwData != 0)
225  {
226  PTBCUSTCTL cctl = (PTBCUSTCTL)ptbButton->dwData;
227 
228  DestroyWindow(cctl->hWndControl);
229 
231  0,
232  cctl);
233  return TRUE;
234  }
235 
236  return FALSE;
237 }
#define TRUE
Definition: types.h:120
#define TBSTYLE_SEP
Definition: commctrl.h:954
BYTE fsStyle
Definition: commctrl.h:924
BOOL WINAPI DestroyWindow(_In_ HWND)
HWND hWndControl
Definition: misc.c:213
DWORD_PTR dwData
Definition: commctrl.h:930
struct _TBCUSTCTL * PTBCUSTCTL
HANDLE ProcessHeap
Definition: servman.c:15
#define HeapFree(x, y, z)
Definition: compat.h:394

Referenced by MainWndProc().

◆ ToolbarInsertSpaceForControl()

BOOL ToolbarInsertSpaceForControl ( HWND  hWndToolbar,
HWND  hWndControl,
INT  Index,
INT  iCmd,
BOOL  HideVertical 
)

Definition at line 297 of file misc.c.

302 {
303  PTBCUSTCTL cctl;
304  RECT rcControl, rcItem;
305 
306  cctl = HeapAlloc(ProcessHeap,
307  0,
308  sizeof(TBCUSTCTL));
309  if (cctl == NULL)
310  return FALSE;
311 
312  cctl->HideVertical = HideVertical;
313  cctl->hWndControl = hWndControl;
314  cctl->iCommand = iCmd;
315 
316  if (GetWindowRect(hWndControl,
317  &rcControl))
318  {
319  TBBUTTON tbtn = {0};
320 
321  tbtn.iBitmap = rcControl.right - rcControl.left;
322  tbtn.idCommand = iCmd;
323  tbtn.fsStyle = TBSTYLE_SEP;
324  tbtn.dwData = (DWORD_PTR)cctl;
325 
326  if (SendMessage(hWndToolbar,
327  TB_GETSTYLE,
328  0,
329  0) & CCS_VERT)
330  {
331  if (HideVertical)
332  tbtn.fsState |= TBSTATE_HIDDEN;
333 
334  cctl->IsVertical = TRUE;
335  }
336  else
337  cctl->IsVertical = FALSE;
338 
339  if (SendMessage(hWndToolbar,
341  (WPARAM)Index,
342  (LPARAM)&tbtn))
343  {
344  if (SendMessage(hWndToolbar,
346  (WPARAM)Index,
347  (LPARAM)&rcItem))
348  {
349  SetWindowPos(hWndControl,
350  NULL,
351  rcItem.left,
352  rcItem.top,
353  rcItem.right - rcItem.left,
354  rcItem.bottom - rcItem.top,
355  SWP_NOZORDER);
356 
357  ShowWindow(hWndControl,
358  SW_SHOW);
359 
360  return TRUE;
361  }
362  else if (tbtn.fsState & TBSTATE_HIDDEN)
363  {
364  ShowWindow(hWndControl,
365  SW_HIDE);
366  }
367  }
368  }
369 
370  return FALSE;
371 }
#define TRUE
Definition: types.h:120
#define DWORD_PTR
Definition: treelist.c:76
#define SW_HIDE
Definition: winuser.h:762
#define TBSTYLE_SEP
Definition: commctrl.h:954
UINT_PTR WPARAM
Definition: windef.h:207
BOOL HideVertical
Definition: misc.c:215
LONG left
Definition: windef.h:291
#define SWP_NOZORDER
Definition: winuser.h:1232
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define TB_INSERTBUTTON
Definition: commctrl.h:1242
BYTE fsStyle
Definition: commctrl.h:924
LONG right
Definition: windef.h:293
#define TB_GETITEMRECT
Definition: commctrl.h:1105
#define CCS_VERT
Definition: commctrl.h:2221
BOOL IsVertical
Definition: misc.c:216
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define SW_SHOW
Definition: winuser.h:769
HWND hWndControl
Definition: misc.c:213
DWORD_PTR dwData
Definition: commctrl.h:930
int iBitmap
Definition: commctrl.h:921
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const UCHAR Index[8]
Definition: usbohci.c:18
int idCommand
Definition: commctrl.h:922
INT iCommand
Definition: misc.c:214
HANDLE ProcessHeap
Definition: servman.c:15
#define TBSTATE_HIDDEN
Definition: commctrl.h:947
#define SendMessage
Definition: winuser.h:5709
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define TB_GETSTYLE
Definition: commctrl.h:1131
BYTE fsState
Definition: commctrl.h:923

Referenced by MainWndCreateToolbarClient().

◆ ToolbarUpdateControlSpaces()

VOID ToolbarUpdateControlSpaces ( HWND  hWndToolbar,
ToolbarChangeControlCallback  ChangeCallback 
)

Definition at line 240 of file misc.c.

242 {
243  BOOL Vert;
244  DWORD nButtons, i;
245  TBBUTTON tbtn;
246 
247  Vert = ((SendMessage(hWndToolbar,
248  TB_GETSTYLE,
249  0,
250  0) & CCS_VERT) != 0);
251 
252  nButtons = (DWORD)SendMessage(hWndToolbar,
254  0,
255  0);
256 
257  for (i = 0;
258  i != nButtons;
259  i++)
260  {
261  if (SendMessage(hWndToolbar,
262  TB_GETBUTTON,
263  (WPARAM)i,
264  (LPARAM)&tbtn))
265  {
266  if ((tbtn.fsStyle & TBSTYLE_SEP) && tbtn.dwData != 0)
267  {
268  PTBCUSTCTL cctl = (PTBCUSTCTL)tbtn.dwData;
269 
270  cctl->IsVertical = Vert;
271 
272  if (cctl->HideVertical)
273  {
274  ShowWindow(cctl->hWndControl,
275  (Vert ? SW_HIDE : SW_SHOW));
276  goto ShowHideSep;
277  }
278  else if (cctl->IsVertical != Vert)
279  {
280  ChangeCallback(hWndToolbar,
281  cctl->hWndControl,
282  Vert);
283 
284 ShowHideSep:
285  /* show/hide the separator */
286  SendMessage(hWndToolbar,
288  (WPARAM)cctl->iCommand,
289  (LPARAM)Vert && cctl->HideVertical);
290  }
291  }
292  }
293  }
294 }
#define TB_BUTTONCOUNT
Definition: commctrl.h:1082
#define SW_HIDE
Definition: winuser.h:762
#define TBSTYLE_SEP
Definition: commctrl.h:954
#define TB_GETBUTTON
Definition: commctrl.h:1081
UINT_PTR WPARAM
Definition: windef.h:207
BOOL HideVertical
Definition: misc.c:215
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BYTE fsStyle
Definition: commctrl.h:924
#define CCS_VERT
Definition: commctrl.h:2221
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
BOOL IsVertical
Definition: misc.c:216
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
#define SW_SHOW
Definition: winuser.h:769
HWND hWndControl
Definition: misc.c:213
DWORD_PTR dwData
Definition: commctrl.h:930
struct _TBCUSTCTL * PTBCUSTCTL
if(!(yy_init))
Definition: macro.lex.yy.c:714
unsigned long DWORD
Definition: ntddk_ex.h:95
INT iCommand
Definition: misc.c:214
static DWORD
Definition: misc.c:47
#define TB_HIDEBUTTON
Definition: commctrl.h:1017
#define SendMessage
Definition: winuser.h:5709
#define TB_GETSTYLE
Definition: commctrl.h:1131

Referenced by MainWndToolbarDockBand().