graphh.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. { we shouldn't set CS_DBLCLKS here }
  23. { because most dos applications }
  24. { handle double clicks on it's own }
  25. graphwindowstyle : DWord = cs_hRedraw or cs_vRedraw;
  26. windowtitle : pchar = 'Graph window application';
  27. CONST
  28. m640x200x16 = VGALo;
  29. m640x400x16 = VGAMed;
  30. m640x480x16 = VGAHi;
  31. { VESA Specific video modes. }
  32. m320x200x32k = $10D;
  33. m320x200x64k = $10E;
  34. m640x400x256 = $100;
  35. m640x480x256 = $101;
  36. m640x480x32k = $110;
  37. m640x480x64k = $111;
  38. m800x600x16 = $102;
  39. m800x600x256 = $103;
  40. m800x600x32k = $113;
  41. m800x600x64k = $114;
  42. m1024x768x16 = $104;
  43. m1024x768x256 = $105;
  44. m1024x768x32k = $116;
  45. m1024x768x64k = $117;
  46. m1280x1024x16 = $106;
  47. m1280x1024x256 = $107;
  48. m1280x1024x32k = $119;
  49. m1280x1024x64k = $11A;
  50. {
  51. $Log$
  52. Revision 1.5 2000-03-05 13:07:04 florian
  53. * the title can be user defined
  54. Revision 1.4 2000/01/07 16:41:52 daniel
  55. * copyright 2000
  56. Revision 1.3 1999/12/08 09:09:34 pierre
  57. + add VESA compatible mode in 16 and 256 colors
  58. Revision 1.2 1999/11/29 22:03:39 florian
  59. * first implementation of winmouse unit
  60. Revision 1.1 1999/11/08 15:01:39 peter
  61. * fpcmake support
  62. }