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.

235 lines
4.4 KiB

  1. /*****************************************************************************
  2. C L I P B O O K D I S P L A Y H E A D E R
  3. Name: clipdsp.h
  4. Date: 21-Jan-1994
  5. Creator: Unknown
  6. Description:
  7. This is the header file for clipdsp.c
  8. History:
  9. 21-Jan-1994 John Fu, reformat and cleanup.
  10. *****************************************************************************/
  11. #define VPOSLAST 100 // Highest vert scroll bar value
  12. #define HPOSLAST 100 // Highest horiz scroll bar value
  13. #define BUFFERLEN 160 // String buffer length
  14. #define CBM_AUTO WM_USER
  15. extern BOOL fOwnerDisplay;
  16. extern HBRUSH hbrBackground;
  17. extern HMENU hDispMenu;
  18. extern int OwnVerMin;
  19. extern int OwnVerMax;
  20. extern int OwnHorMin;
  21. extern int OwnHorMax;
  22. extern int OwnVerPos;
  23. extern int OwnHorPos;
  24. extern WORD rgfmt[];
  25. BOOL MyOpenClipboard(
  26. HWND hWnd);
  27. void SetCharDimensions(
  28. HWND hWnd,
  29. HFONT hFont);
  30. void ChangeCharDimensions(
  31. HWND hwnd,
  32. UINT wOldFormat,
  33. UINT wNewFormat);
  34. void ClipbrdVScroll(
  35. HWND hwnd,
  36. WORD wParam,
  37. WORD wThumb);
  38. void ClipbrdHScroll(
  39. HWND hwnd,
  40. WORD wParam,
  41. WORD wThumb);
  42. int DibPaletteSize(
  43. LPBITMAPINFOHEADER lpbi);
  44. void DibGetInfo(
  45. HANDLE hdib,
  46. LPBITMAP pbm);
  47. BOOL DrawDib(
  48. HWND hwnd,
  49. HDC hdc,
  50. int x0,
  51. int y0,
  52. HANDLE hdib);
  53. BOOL FShowDIBitmap(
  54. HWND hwnd,
  55. register HDC hdc,
  56. PRECT prc,
  57. HANDLE hdib, //Bitmap in DIB format
  58. int cxScroll,
  59. int cyScroll);
  60. BOOL FShowBitmap(
  61. HWND hwnd,
  62. HDC hdc,
  63. register PRECT prc,
  64. HBITMAP hbm,
  65. int cxScroll,
  66. int cyScroll);
  67. BOOL FShowPalette(
  68. HWND hwnd,
  69. register HDC hdc,
  70. register PRECT prc,
  71. HPALETTE hpal,
  72. int cxScroll,
  73. int cyScroll);
  74. int PxlConvert(
  75. int mm,
  76. int val,
  77. int pxlDeviceRes,
  78. int milDeviceRes);
  79. BOOL FShowEnhMetaFile(
  80. HWND hwnd,
  81. register HDC hdc,
  82. register PRECT prc,
  83. HANDLE hemf,
  84. int cxScroll,
  85. int cyScroll);
  86. BOOL CALLBACK EnumMetafileProc(
  87. HDC hdc,
  88. HANDLETABLE FAR *lpht,
  89. METARECORD FAR *lpmr,
  90. int cObj,
  91. LPARAM lParam);
  92. BOOL FShowMetaFilePict(
  93. HWND hwnd,
  94. register HDC hdc,
  95. register PRECT prc,
  96. HANDLE hmfp,
  97. int cxScroll,
  98. int cyScroll);
  99. void ShowString(
  100. HWND hwnd,
  101. HDC hdc,
  102. WORD id);
  103. LONG CchLineA(
  104. PMDIINFO pMDI,
  105. HDC hDC,
  106. CHAR rgchBuf[],
  107. CHAR FAR *lpch,
  108. INT cchLine,
  109. WORD wWidth);
  110. LONG CchLineW(
  111. PMDIINFO pMDI,
  112. HDC hDC,
  113. WCHAR rgchBuf[],
  114. WCHAR FAR *lpch,
  115. INT cchLine,
  116. WORD wWidth);
  117. void ShowText(
  118. HWND hwnd,
  119. register HDC hdc,
  120. PRECT prc,
  121. HANDLE h,
  122. INT cyScroll,
  123. BOOL fUnicode);
  124. void SendOwnerMessage(
  125. UINT message,
  126. WPARAM wParam,
  127. LPARAM lParam);
  128. void SendOwnerSizeMessage (
  129. HWND hwnd,
  130. int left,
  131. int top,
  132. int right,
  133. int bottom);
  134. UINT GetBestFormat(
  135. HWND hwnd,
  136. UINT wFormat);
  137. void GetClipboardName (
  138. register int fmt,
  139. LPTSTR szName,
  140. register int iSize);
  141. void DrawFormat(
  142. register HDC hdc,
  143. PRECT prc,
  144. int cxScroll,
  145. int cyScroll,
  146. WORD BestFormat,
  147. HWND hwndMDI);
  148. void DrawStuff(
  149. HWND hwnd,
  150. register PAINTSTRUCT *pps,
  151. HWND hwndMDI);
  152. void SaveOwnerScrollInfo (
  153. register HWND hwnd);
  154. void RestoreOwnerScrollInfo (
  155. register HWND hwnd);
  156. void InitOwnerScrollInfo(void);
  157. void UpdateCBMenu(
  158. HWND hwnd,
  159. HWND hwndMDI);
  160. BOOL ClearClipboard (
  161. register HWND hwnd);