Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 1993-1996 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // MODULE: BtnBar.h
  6. //
  7. // PURPOSE: Defines a class that can be used as a generic button bar.
  8. //
  9. #ifndef __BTNBAR_H__
  10. #define __BTNBAR_H__
  11. static const TCHAR c_szButtonBar[] = TEXT("WABButtonBar");
  12. static const int c_cxButtons = 20;
  13. static const COLORREF c_crMask = RGB(255, 0, 255);
  14. static COLORREF g_clrSelText = RGB(255, 0, 0);
  15. static COLORREF g_clrText = RGB(0, 0, 0);
  16. // BTNCREATEPARAMS: This structure is used to pass information about each
  17. // button to the CButtonBar::Create() function.
  18. typedef struct tagBTNCREATEPARAMS
  19. {
  20. UINT id; // WM_COMMAND ID to be sent to the parent when pressed
  21. UINT iIcon; // Index of the icon in the image list to display
  22. UINT idsLabel; // String resource ID of the title text for the button
  23. } BTNCREATEPARAMS, *PBTNCREATEPARAMS;
  24. HWND CBB_Create( HWND hwndParent,
  25. UINT idButtons,
  26. UINT idHorzBackground,
  27. PBTNCREATEPARAMS pBtnCreateParams,
  28. UINT cParams);
  29. static LRESULT CALLBACK CBB_ButtonBarProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  30. void CBB_OnPaint(HWND hwnd);
  31. void CBB_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags);
  32. void CBB_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags);
  33. void CBB_OnTimer(HWND hwnd, UINT id);
  34. int CBB_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg);
  35. #endif