ODFrame.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* OpenDoors Online Software Programming Toolkit
  2. * (C) Copyright 1991 - 1999 by Brian Pirie.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *
  18. *
  19. * File: ODFrame.h
  20. *
  21. * Description: Defines the public interface to the OpenDoors frame window.
  22. * This file is only applicable when building the Win32 version
  23. * of OpenDoors.
  24. *
  25. * Revisions: Date Ver Who Change
  26. * ---------------------------------------------------------------
  27. * Aug 20, 1995 6.00 BP Created.
  28. * Jan 20, 1996 6.00 BP Made ODFrameCenter...() shared.
  29. * Feb 17, 1996 6.00 BP Add ...Accelerator() return value.
  30. * Feb 19, 1996 6.00 BP Changed version number to 6.00.
  31. * Mar 03, 1996 6.10 BP Begin version 6.10.
  32. */
  33. #ifndef _INC_ODFRAME
  34. #define _INC_ODFRAME
  35. #include "ODPlat.h"
  36. #include "ODGen.h"
  37. #ifdef ODPLAT_WIN32
  38. /* Public frame window functions. */
  39. tODResult ODFrameStart(HANDLE hInstance, tODThreadHandle *phFrameThread);
  40. INT ODFrameGetUsedClientAtTop(HWND hwndFrame);
  41. INT ODFrameGetUsedClientAtBottom(HWND hwndFrame);
  42. BOOL ODFrameTranslateAccelerator(HWND hwndFrame, LPMSG pMsg);
  43. void ODFrameUpdateCmdUI(void);
  44. void ODFrameUpdateTimeDisplay(void);
  45. void ODFrameUpdateWantChat(void);
  46. void ODFrameCenterWindowInParent(HWND hwndChild);
  47. /* User defined messages that are handled by the frame window. */
  48. #define WM_SHOW_MESSAGE (WM_USER + 1)
  49. #define WM_REMOVE_MESSAGE (WM_USER + 2)
  50. #endif /* ODPLAT_WIN32 */
  51. #endif /* _INC_ODFRAME */