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.

82 lines
2.6 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998
  4. *
  5. * TITLE: COMDELP.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 9/28/1999
  12. *
  13. * DESCRIPTION: Delete progress page. Displays the thumbnail and download progress.
  14. *
  15. *******************************************************************************/
  16. #ifndef __COMDELP_H_INCLUDED
  17. #define __COMDELP_H_INCLUDED
  18. #include <windows.h>
  19. #include "acqmgrcw.h"
  20. #include "gphelper.h"
  21. class CCommonDeleteProgressPage
  22. {
  23. private:
  24. // Private data
  25. HWND m_hWnd;
  26. CAcquisitionManagerControllerWindow *m_pControllerWindow;
  27. int m_nPictureCount;
  28. HANDLE m_hCancelDeleteEvent;
  29. CGdiPlusHelper m_GdiPlusHelper;
  30. UINT m_nThreadNotificationMessage;
  31. HPROPSHEETPAGE m_hSwitchToNextPage;
  32. bool m_bQueryingUser;
  33. bool m_bDeleteCancelled;
  34. private:
  35. // No implementation
  36. CCommonDeleteProgressPage(void);
  37. CCommonDeleteProgressPage( const CCommonDeleteProgressPage & );
  38. CCommonDeleteProgressPage &operator=( const CCommonDeleteProgressPage & );
  39. private:
  40. // Constructor and destructor
  41. explicit CCommonDeleteProgressPage( HWND hWnd );
  42. ~CCommonDeleteProgressPage(void);
  43. private:
  44. // Helpers
  45. void UpdatePercentComplete( int nPercent, bool bUploading );
  46. void UpdateCurrentPicture( int nPicture );
  47. void UpdateThumbnail( HBITMAP hBitmap, CWiaItem *pWiaItem );
  48. bool QueryCancel(void);
  49. private:
  50. // WM_COMMAND handlers
  51. // Thread Message handlers
  52. void OnNotifyDeleteImage( UINT nMsg, CThreadNotificationMessage *pThreadNotificationMessage );
  53. // WM_NOTIFY handlers
  54. LRESULT OnSetActive( WPARAM, LPARAM );
  55. LRESULT OnKillActive( WPARAM, LPARAM );
  56. LRESULT OnWizNext( WPARAM, LPARAM );
  57. LRESULT OnWizBack( WPARAM, LPARAM );
  58. LRESULT OnReset( WPARAM, LPARAM );
  59. LRESULT OnQueryCancel( WPARAM, LPARAM );
  60. // Message handlers
  61. LRESULT OnInitDialog( WPARAM, LPARAM );
  62. LRESULT OnCommand( WPARAM, LPARAM );
  63. LRESULT OnNotify( WPARAM, LPARAM );
  64. LRESULT OnThreadNotification( WPARAM, LPARAM );
  65. LRESULT OnEventNotification( WPARAM, LPARAM );
  66. LRESULT OnQueryEndSession( WPARAM, LPARAM );
  67. LRESULT OnSysColorChange( WPARAM, LPARAM );
  68. public:
  69. static INT_PTR CALLBACK DialogProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam );
  70. };
  71. #endif __COMDELP_H_INCLUDED