graphh.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. This file implements the win32 gui support for the graph unit
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. var
  13. { this procedure allows to hook keyboard messages }
  14. charmessagehandler : function(Window: hwnd; AMessage, WParam,
  15. LParam: Longint): Longint;
  16. { this procedure allows to hook mouse messages }
  17. mousemessagehandler : function(Window: hwnd; AMessage, WParam,
  18. LParam: Longint): Longint;
  19. mainwindow : HWnd;
  20. const
  21. { predefined window style }
  22. graphwindowstyle : DWord = cs_hRedraw or cs_vRedraw;
  23. CONST
  24. m640x200x16 = VGALo;
  25. m640x400x16 = VGAMed;
  26. m640x480x16 = VGAHi;
  27. { VESA Specific video modes. }
  28. m320x200x32k = $10D;
  29. m320x200x64k = $10E;
  30. m640x400x256 = $100;
  31. m640x480x256 = $101;
  32. m640x480x32k = $110;
  33. m640x480x64k = $111;
  34. m800x600x16 = $102;
  35. m800x600x256 = $103;
  36. m800x600x32k = $113;
  37. m800x600x64k = $114;
  38. m1024x768x16 = $104;
  39. m1024x768x256 = $105;
  40. m1024x768x32k = $116;
  41. m1024x768x64k = $117;
  42. m1280x1024x16 = $106;
  43. m1280x1024x256 = $107;
  44. m1280x1024x32k = $119;
  45. m1280x1024x64k = $11A;
  46. {
  47. $Log$
  48. Revision 1.4 2000-01-07 16:41:52 daniel
  49. * copyright 2000
  50. Revision 1.3 1999/12/08 09:09:34 pierre
  51. + add VESA compatible mode in 16 and 256 colors
  52. Revision 1.2 1999/11/29 22:03:39 florian
  53. * first implementation of winmouse unit
  54. Revision 1.1 1999/11/08 15:01:39 peter
  55. * fpcmake support
  56. }