Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999.
  5. //
  6. // File: brctrl.hxx
  7. //
  8. // Contents:
  9. //
  10. // History: 15 Aug 1996 DLee Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. class Control
  15. {
  16. public:
  17. LRESULT Create(CQueryResult *pResult, HWND hwnd,
  18. Model *pModel, View *pView, HFONT hFont);
  19. void Size ( HWND hwnd, LPARAM lParam );
  20. void Paint ( HWND hwnd ) { _pView->Paint (hwnd); }
  21. void VScroll( HWND hwnd, WPARAM wParm, LPARAM lParam );
  22. void HScroll( HWND hwnd, WPARAM wParm, LPARAM lParam );
  23. LRESULT MouseWheel( HWND hwnd, WPARAM wParm, LPARAM lParam );
  24. void KeyDown ( HWND hwnd, WPARAM wparam );
  25. void Command ( HWND hwnd, WPARAM wparam );
  26. void Char ( HWND hwnd, WPARAM wparam );
  27. void EnableMenus ();
  28. void NewFont ( HWND hwnd, WPARAM wParam );
  29. void Activate( HWND hwnd, LPARAM lParam );
  30. void ContextMenu( HWND hwnd, WPARAM wParam, LPARAM lParam );
  31. private:
  32. void SetScrollBars (HWND hwnd);
  33. void UpdateScroll( HWND hwnd );
  34. Model * _pModel;
  35. View * _pView;
  36. int _iWheelRemainder;
  37. };