home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / pplane / winproc.h < prev   
C/C++ Source or Header  |  1997-07-14  |  2KB  |  70 lines

  1. #ifndef WINPROC_H
  2. #define WINPROC_H
  3. /*
  4. **-----------------------------------------------------------------------------
  5. **  File:       WinProc.h
  6. **  Purpose:    Sample Window Procedure code
  7. **  Notes:
  8. **
  9. **  Copyright (c) 1995 - 1997 by Microsoft, all rights reserved
  10. **-----------------------------------------------------------------------------
  11. */
  12.  
  13. /*
  14. **-----------------------------------------------------------------------------
  15. **  Include files
  16. **-----------------------------------------------------------------------------
  17. */
  18.  
  19. #include "Common.h"
  20. #include "D3DWin.h"
  21.  
  22.  
  23. /*
  24. **-----------------------------------------------------------------------------
  25. **  Function Prototypes
  26. **-----------------------------------------------------------------------------
  27. */
  28.  
  29. // Windows routines
  30. LRESULT CALLBACK D3DWindowProc (HWND hWindow, UINT uiMessage,
  31.                                 WPARAM wParam, LPARAM lParam);
  32.  
  33.  
  34. // Window Message helper routines
  35. LRESULT OnAbout (HWND hWindow);
  36. LRESULT OnActivateApp (HWND hWindow, WPARAM wParam, LPARAM lParam);
  37. LRESULT OnClose (HWND hWindow);
  38. LRESULT OnCommand (HWND hWindow, WPARAM wParam, LPARAM lParam);
  39. LRESULT OnCreate (HWND hWindow);
  40. LRESULT OnDestroy (HWND hWindow);
  41. LRESULT OnDisplayChange (HWND hWindow);
  42. LRESULT OnEraseBackground (HWND hWindow, WPARAM wParam, LPARAM lParam);
  43. LRESULT OnGetMinMaxInfo (HWND hWindow, LPMINMAXINFO lpmmi);
  44. void    OnIdle (HWND hWindow);
  45. LRESULT OnMove (HWND hWindow, INT nX, INT nY);
  46. void    OnPause (HWND hWindow, BOOL fPause);
  47. LRESULT OnPaint (HWND hWindow, HDC hdc, LPPAINTSTRUCT lpps);
  48. LRESULT OnSize (HWND hWindow, INT nW, INT nH);
  49.  
  50. // D3D Notification routines
  51. LRESULT    OnD3DInit (HWND hWindow, LPD3DWindow lpd3dWindow);
  52. LRESULT    OnD3DFini (HWND hWindow, LPD3DWindow lpd3dWindow);
  53. LRESULT    OnD3DChangeDriver (HWND hWindow);
  54. LRESULT    OnD3DChangeMode (HWND hWindow);
  55. LRESULT    OnD3DChangeDevice (HWND hWindow);
  56.  
  57. // Misc Routines
  58. void    PaintPaused (HWND hWindow, HDC hdc);
  59.  
  60.  
  61.  
  62. /*
  63. **-----------------------------------------------------------------------------
  64. **  End of File
  65. **-----------------------------------------------------------------------------
  66. */
  67. #endif // End WINPROC_H
  68.  
  69.  
  70.