PageRenderTime 103ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Components/tb2k/Source/TB2Common.hpp

http://we-editor.googlecode.com/
C++ Header | 97 lines | 78 code | 11 blank | 8 comment | 0 complexity | c98d8ccd8a87a2651fc421896723a2e4 MD5 | raw file
Possible License(s): LGPL-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, GPL-2.0
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'Tb2common.pas' rev: 21.00
  5. #ifndef Tb2commonHPP
  6. #define Tb2commonHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #pragma option -w- // All warnings off
  10. #pragma option -Vx // Zero-length empty class member functions
  11. #pragma pack(push,8)
  12. #include <System.hpp> // Pascal unit
  13. #include <Sysinit.hpp> // Pascal unit
  14. #include <Windows.hpp> // Pascal unit
  15. #include <Classes.hpp> // Pascal unit
  16. #include <Sysutils.hpp> // Pascal unit
  17. #include <Messages.hpp> // Pascal unit
  18. #include <Controls.hpp> // Pascal unit
  19. #include <Forms.hpp> // Pascal unit
  20. //-- user supplied -----------------------------------------------------------
  21. namespace Tb2common
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. typedef void __fastcall (*THandleWMPrintNCPaintProc)(HWND Wnd, HDC DC, System::TObject* AppData);
  25. typedef void __fastcall (__closure *TPaintHandlerProc)(Messages::TWMPaint &Message);
  26. typedef void * TListItemType;
  27. typedef int ClipToLongint;
  28. //-- var, const, procedure ---------------------------------------------------
  29. static const ShortInt PopupMenuWindowNCSize = 0x3;
  30. static const int DT_HIDEPREFIX = 0x100000;
  31. extern PACKAGE bool __fastcall ApplicationIsActive(void);
  32. extern PACKAGE void __fastcall HandleWMPrint(const HWND Wnd, Messages::TMessage &Message, const THandleWMPrintNCPaintProc NCPaintFunc, const System::TObject* AppData);
  33. extern PACKAGE void __fastcall HandleWMPrintClient(const TPaintHandlerProc PaintHandlerProc, const Messages::TMessage &Message);
  34. extern PACKAGE int __fastcall GetTextHeight(const HDC DC);
  35. extern PACKAGE System::UnicodeString __fastcall StripAccelChars(const System::UnicodeString S);
  36. extern PACKAGE System::UnicodeString __fastcall EscapeAmpersands(const System::UnicodeString S);
  37. extern PACKAGE System::UnicodeString __fastcall StripTrailingPunctuation(const System::UnicodeString S);
  38. extern PACKAGE int __fastcall GetTextWidth(const HDC DC, System::UnicodeString S, const bool Prefix);
  39. extern PACKAGE void __fastcall ProcessPaintMessages(void);
  40. extern PACKAGE void __fastcall RemoveMessages(const int AMin, const int AMax);
  41. extern PACKAGE void __fastcall SelectNCUpdateRgn(HWND Wnd, HDC DC, HRGN Rgn);
  42. extern PACKAGE bool __fastcall AddToList(Classes::TList* &List, System::TObject* Item);
  43. extern PACKAGE bool __fastcall AddToFrontOfList(Classes::TList* &List, System::TObject* Item);
  44. extern PACKAGE void __fastcall RemoveFromList(Classes::TList* &List, System::TObject* Item);
  45. extern PACKAGE int __fastcall GetMenuShowDelay(void);
  46. extern PACKAGE bool __fastcall AreFlatMenusEnabled(void);
  47. extern PACKAGE bool __fastcall AreKeyboardCuesEnabled(void);
  48. extern PACKAGE HBITMAP __fastcall CreateMonoBitmap(const int AWidth, const int AHeight, System::Byte const *ABits, const int ABits_Size);
  49. extern PACKAGE HBRUSH __fastcall CreateHalftoneBrush(void);
  50. extern PACKAGE void __fastcall DrawHalftoneInvertRect(const HDC DC, const Types::TRect &NewRect, const Types::TRect &OldRect, const tagSIZE &NewSize, const tagSIZE &OldSize);
  51. extern PACKAGE bool __fastcall IsFillRectWithGradientAvailable(void);
  52. extern PACKAGE void __fastcall FillRectWithGradient(const HDC DC, const Types::TRect &R, const unsigned StartColor, const unsigned EndColor, const bool HorizontalDirection);
  53. extern PACKAGE void __fastcall DrawSmallWindowCaption(const HWND Wnd, const HDC DC, const Types::TRect &ARect, const System::UnicodeString AText, const bool AActive);
  54. extern PACKAGE void __fastcall DoubleBufferedRepaint(const HWND Wnd);
  55. extern PACKAGE bool __fastcall MethodsEqual(const System::TMethod &M1, const System::TMethod &M2);
  56. extern PACKAGE Types::TRect __fastcall GetRectOfPrimaryMonitor(const bool WorkArea);
  57. extern PACKAGE bool __fastcall UsingMultipleMonitors(void);
  58. extern PACKAGE Types::TRect __fastcall GetRectOfMonitorContainingRect(const Types::TRect &R, const bool WorkArea);
  59. extern PACKAGE Types::TRect __fastcall GetRectOfMonitorContainingPoint(const Types::TPoint &P, const bool WorkArea);
  60. extern PACKAGE Types::TRect __fastcall GetRectOfMonitorContainingWindow(const HWND W, const bool WorkArea);
  61. extern PACKAGE void __fastcall InitTrackMouseEvent(void);
  62. extern PACKAGE bool __fastcall CallTrackMouseEvent(const HWND Wnd, const unsigned Flags);
  63. extern PACKAGE void __fastcall CallLockSetForegroundWindow(const bool ALock);
  64. extern PACKAGE int __fastcall DrawTextStr(const HDC DC, const System::UnicodeString AText, Types::TRect &ARect, const unsigned AFormat);
  65. extern PACKAGE BOOL __fastcall GetTextExtentPoint32Str(const HDC DC, const System::UnicodeString AText, /* out */ tagSIZE &ASize);
  66. extern PACKAGE BOOL __fastcall TextOutStr(const HDC DC, const int X, const int Y, const System::UnicodeString AText);
  67. extern PACKAGE HFONT __fastcall CreateRotatedFont(HDC DC);
  68. extern PACKAGE void __fastcall DrawRotatedText(const HDC DC, System::UnicodeString AText, const Types::TRect &ARect, const unsigned AFormat);
  69. extern PACKAGE bool __fastcall NeedToPlaySound(const System::UnicodeString Alias);
  70. extern PACKAGE void __fastcall PlaySystemSound(const System::UnicodeString Alias);
  71. extern PACKAGE int __fastcall Max(int A, int B);
  72. extern PACKAGE int __fastcall Min(int A, int B);
  73. extern PACKAGE System::WideChar __fastcall FindAccelChar(const System::UnicodeString S);
  74. extern PACKAGE bool __fastcall IsWindowsXP(void);
  75. extern PACKAGE unsigned __fastcall GetInputLocaleCodePage(void);
  76. extern PACKAGE Types::TPoint __fastcall GetMessagePosAsPoint(void);
  77. extern PACKAGE bool __fastcall GetSystemNonClientMetrics(tagNONCLIENTMETRICSW &Metrics);
  78. extern PACKAGE BOOL __fastcall GetSystemParametersInfoBool(const unsigned Param, const BOOL Default);
  79. extern PACKAGE System::WideChar __fastcall CharToLower(const System::WideChar C);
  80. } /* namespace Tb2common */
  81. using namespace Tb2common;
  82. #pragma pack(pop)
  83. #pragma option pop
  84. #pragma delphiheader end.
  85. //-- end unit ----------------------------------------------------------------
  86. #endif // Tb2commonHPP