home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / emxtutor.zip / emxsrcd1.zip / emx / src / pmgdb / pmapp.h < prev    next >
C/C++ Source or Header  |  1996-08-04  |  1KB  |  51 lines

  1. /* pmapp.h -*- C++ -*-
  2.    Copyright (c) 1996 Eberhard Mattes
  3.  
  4. This file is part of pmgdb.
  5.  
  6. pmgdb is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. pmgdb is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with pmgdb; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21.  
  22. class pmapp
  23. {
  24. public:
  25.   pmapp (const char *name);
  26.   ~pmapp ();
  27.   void win_error () const;
  28.   void no_message_loop () const;
  29.   void message_loop () const;
  30.   HAB get_hab () const { return hab; }
  31.   const char *get_name () const { return name; }
  32.   int get_screen_width () const { return swpScreen.cx; }
  33.   int get_screen_height () const { return swpScreen.cy; }
  34.  
  35. private:
  36.   HAB hab;
  37.   HMQ hmq;
  38.   SWP swpScreen;
  39.   fstring name;
  40. };
  41.  
  42.  
  43. struct pm_create
  44. {
  45.   USHORT cb;
  46.   void *ptr;
  47.   void *ptr2;
  48. };
  49.  
  50. void dlg_sys_menu (HWND hwnd);
  51.