Source code of Windows XP (NT5)
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.

78 lines
1.8 KiB

  1. //
  2. // Driver Verifier UI
  3. // Copyright (c) Microsoft Corporation, 1999
  4. //
  5. //
  6. //
  7. // module: ProgCtrl.h
  8. // author: DMihai
  9. // created: 11/1/00
  10. //
  11. // Description:
  12. //
  13. #if !defined(AFX_PROGCTRL_H__3F75E128_8721_4421_B96B_9961A9A3C5B0__INCLUDED_)
  14. #define AFX_PROGCTRL_H__3F75E128_8721_4421_B96B_9961A9A3C5B0__INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. // ProgCtrl.h : header file
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CVrfProgressCtrl window
  22. class CVrfProgressCtrl : public CProgressCtrl
  23. {
  24. // Construction
  25. public:
  26. CVrfProgressCtrl();
  27. // Attributes
  28. public:
  29. // Operations
  30. public:
  31. void SetRange32( INT_PTR nLower, INT_PTR nUpper )
  32. {
  33. ASSERT( ::IsWindow( m_hWnd ) );
  34. ::PostMessage( m_hWnd, PBM_SETRANGE32, (WPARAM) nLower, (LPARAM) nUpper);
  35. }
  36. int SetStep( INT_PTR nStep )
  37. {
  38. ASSERT(::IsWindow( m_hWnd) );
  39. return (int) ::PostMessage( m_hWnd, PBM_SETSTEP, nStep, 0L);
  40. }
  41. int SetPos(INT_PTR nPos)
  42. {
  43. ASSERT( ::IsWindow( m_hWnd ) );
  44. return (int) ::PostMessage(m_hWnd, PBM_SETPOS, nPos, 0L);
  45. }
  46. // Overrides
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CVrfProgressCtrl)
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. public:
  52. virtual ~CVrfProgressCtrl();
  53. // Generated message map functions
  54. protected:
  55. //{{AFX_MSG(CVrfProgressCtrl)
  56. // NOTE - the ClassWizard will add and remove member functions here.
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. /////////////////////////////////////////////////////////////////////////////
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_PROGCTRL_H__3F75E128_8721_4421_B96B_9961A9A3C5B0__INCLUDED_)