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.

59 lines
2.1 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2 Sample Code
  4. **
  5. ** heading.c
  6. **
  7. ** This file contains definitions used by OutlineDoc's row and
  8. ** column headings.
  9. **
  10. ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
  11. **
  12. *************************************************************************/
  13. #define COLUMN 10
  14. #define IDC_ROWHEADING 2000
  15. #define IDC_COLHEADING 2001
  16. #define IDC_BUTTON 2002
  17. #define HEADING_FONT "Arial"
  18. #define COLUMN_LETTER 'A'
  19. typedef struct tagCOLHEADING {
  20. HWND m_hWnd;
  21. UINT m_uHeight;
  22. } COLHEADING, FAR* LPCOLHEADING;
  23. typedef struct tagROWHEADING {
  24. HWND m_hWnd;
  25. UINT m_uWidth;
  26. FARPROC m_WndProc;
  27. } ROWHEADING, FAR* LPROWHEADING;
  28. typedef struct tagHEADING {
  29. COLHEADING m_colhead;
  30. ROWHEADING m_rowhead;
  31. HWND m_hwndButton;
  32. BOOL m_fShow;
  33. HFONT m_hfont;
  34. } HEADING, FAR* LPHEADING;
  35. BOOL Heading_Create(LPHEADING lphead, HWND hWndParent, HINSTANCE hInst);
  36. void Heading_Destroy(LPHEADING lphead);
  37. void Heading_Move(LPHEADING lphead, HWND hwndListBox, LPSCALEFACTOR lpscale);
  38. void Heading_Show(LPHEADING lphead, BOOL fShow);
  39. void Heading_ReScale(LPHEADING lphead, LPSCALEFACTOR lpscale);
  40. void Heading_CH_Draw(LPHEADING lphead, LPDRAWITEMSTRUCT lpdis, LPRECT lprcScreen, LPRECT lprcObject);
  41. void Heading_CH_SetHorizontalExtent(LPHEADING lphead, HWND hwndListBox);
  42. UINT Heading_CH_GetHeight(LPHEADING lphead, LPSCALEFACTOR lpscale);
  43. LRESULT Heading_CH_SendMessage(LPHEADING lphead, UINT msg, WPARAM wParam, LPARAM lParam);
  44. void Heading_CH_ForceRedraw(LPHEADING lphead, BOOL fErase);
  45. void Heading_RH_ForceRedraw(LPHEADING lphead, BOOL fErase);
  46. void Heading_RH_Draw(LPHEADING lphead, LPDRAWITEMSTRUCT lpdis);
  47. LRESULT Heading_RH_SendMessage(LPHEADING lphead, UINT msg, WPARAM wParam, LPARAM lParam);
  48. UINT Heading_RH_GetWidth(LPHEADING lphead, LPSCALEFACTOR lpscale);
  49. void Heading_RH_Scroll(LPHEADING lphead, HWND hwndListBox);
  50. LRESULT FAR PASCAL RowHeadWndProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam);