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.

65 lines
2.1 KiB

  1. /*****************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 2000
  4. *
  5. * TITLE: photosel.h
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: RickTu
  10. *
  11. * DATE: 10/18/00
  12. *
  13. * DESCRIPTION: Photo selection dlg proc class header
  14. *
  15. *****************************************************************************/
  16. #ifndef _PRINT_PHOTOS_WIZARD_PHOTO_SELECTION_DLG_PROC_
  17. #define _PRINT_PHOTOS_WIZARD_PHOTO_SELECTION_DLG_PROC_
  18. class CWizardInfoBlob;
  19. #define PSP_MSG_UPDATE_ITEM_COUNT (WM_USER+50) // wParam = current item, lParam = total items
  20. #define PSP_MSG_NOT_ALL_LOADED (WM_USER+51) // show the "not all items are being displayed" message
  21. #define PSP_MSG_CLEAR_STATUS (WM_USER+52) // clear the status line
  22. #define PSP_MSG_ADD_ITEM (WM_USER+53) // wParam = index of item to add, lParam = image list index for item
  23. #define PSP_MSG_SELECT_ITEM (WM_USER+54) // wParam = index of item to select
  24. #define PSP_MSG_UPDATE_THUMBNAIL (WM_USER+55) // wParam = index of listview item, lParam = index of new imagelist item
  25. #define PSP_MSG_ENABLE_BUTTONS (WM_USER+56) // wParam = number of items in listview
  26. #define PSP_MSG_INVALIDATE_LISTVIEW (WM_USER+57) // no params
  27. class CPhotoSelectionPage
  28. {
  29. public:
  30. CPhotoSelectionPage( CWizardInfoBlob * pBlob );
  31. ~CPhotoSelectionPage();
  32. INT_PTR DoHandleMessage( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
  33. HWND hwnd() {return _hDlg;};
  34. VOID ShutDownBackgroundThreads();
  35. private:
  36. VOID _PopulateListView();
  37. static DWORD s_UpdateThumbnailThreadProc(VOID *pv);
  38. // window message handlers
  39. LRESULT _OnInitDialog();
  40. LRESULT _OnCommand(WPARAM wParam, LPARAM lParam);
  41. LRESULT _OnDestroy();
  42. LRESULT _OnNotify(WPARAM wParam, LPARAM lParam);
  43. private:
  44. CWizardInfoBlob * _pWizInfo;
  45. HWND _hDlg;
  46. BOOL _bActive;
  47. HANDLE _hThumbnailThread;
  48. };
  49. #endif