PicBar.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // PicBar.h: interface for the PicBar class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PicBar_H__9E2611E5_0E62_4671_A849_BE55510672CB__INCLUDED_)
  5. #define AFX_PicBar_H__9E2611E5_0E62_4671_A849_BE55510672CB__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "MyDlg.h"
  10. //-------------------------------------------------------------
  11. // 底部播放相片工具条;
  12. // 按钮:退出、剪裁、放大、缩小、逆时针旋转、顺时针旋转、上一张、播放幻灯片、下一张、播放速度减、播放速度加;
  13. // 单选框:动感、幻灯、推动、飘动;
  14. //-------------------------------------------------------------
  15. class PicBar : public MyDlg
  16. {
  17. // 4种幻灯效果单选框;
  18. CButton m_button1; // 动感;
  19. CButton m_button2; // 幻灯;
  20. CButton m_button3; // 推动;
  21. CButton m_button4; // 飘动;
  22. Image *m_pImageRun;
  23. Image *m_pImageStop;
  24. float g_fscalexbak;
  25. float g_fscaleybak;
  26. public:
  27. BOOL m_bShowCut;
  28. void PreLoad();
  29. int m_nType;
  30. void ChangeBtn();
  31. BOOL m_bInit;
  32. void DrawTimes();
  33. int m_time;
  34. void EffectChange();
  35. CDialog *m_pParent;
  36. PicBar();
  37. virtual ~PicBar();
  38. void BtnClick(WPARAM wParam, LPARAM lParam);
  39. void Init();
  40. void Destory();
  41. BOOL PreTransMsg(MSG* pMsg);
  42. void OnFSCommand(LPCTSTR command, LPCTSTR args);
  43. };
  44. #endif