home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / include / Toolbar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-16  |  1.5 KB  |  45 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   : toolbar.h                                                             //
  12. //  Description: Toolbar wrapper                                                     //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. #include <commctrl.h>
  17.  
  18. // Toolbar window
  19. class KToolbar
  20. {
  21. protected:
  22.     HWND        m_hToolTip;
  23.     UINT        m_ControlID;
  24.     
  25.     HINSTANCE   m_ResInstance;
  26.     UINT        m_ResId;
  27. public:
  28.  
  29.     HWND        m_hWnd;
  30.  
  31.     KToolbar()
  32.     {
  33.         m_hWnd        = NULL;
  34.         m_hToolTip  = NULL;
  35.         m_ControlID = 0;
  36.  
  37.         m_ResInstance = NULL;
  38.         m_ResId       = 0;
  39.     }
  40.  
  41.     void Create(HWND hParent, HINSTANCE hInstance, UINT nControlID, const TBBUTTON * pButtons, int nCount);
  42.     void Resize(HWND hParent, int width, int height);
  43. };
  44.  
  45.