home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / include / Status.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-11  |  1.5 KB  |  42 lines

  1. #pragma once
  2.  
  3. //-----------------------------------------------------------------------------------//
  4. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  5. //                             ISBN  0-13-086985-6                                   //
  6. //                                                                                   //
  7. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  8. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  9. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  10. //                                                                                   //
  11. //  FileName   : status.h                                                             //
  12. //  Description: Status window wrapper                                               //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. typedef enum
  17. {
  18.     pane_1,
  19.     pane_2,
  20.     pane_3
  21. };
  22.  
  23.  
  24. // Status window
  25. class KStatusWindow
  26. {
  27. public:
  28.     HWND m_hWnd;
  29.     UINT m_ControlID;
  30.  
  31.     KStatusWindow()
  32.     {
  33.         m_hWnd        = NULL;
  34.         m_ControlID = 0;
  35.     }
  36.  
  37.     void Create(HWND hParent, UINT nControlID);
  38.     void Resize(HWND hParent, int width, int height);
  39.     void SetText(int pane, HINSTANCE hInst, int messid, int param=0);
  40.     void SetText(int pane, LPCTSTR message);
  41. };
  42.