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.

73 lines
2.0 KiB

  1. // BMPInfoDlg.h : header file
  2. //
  3. #if !defined(AFX_BMPINFODLG_H__5387ABF9_990C_11D2_B482_009027226441__INCLUDED_)
  4. #define AFX_BMPINFODLG_H__5387ABF9_990C_11D2_B482_009027226441__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CBMPInfoDlg dialog
  10. #define BMP_HEADER_MARKER ((WORD) ('M' << 8) | 'B')
  11. class CBMPInfoDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CBMPInfoDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CBMPInfoDlg)
  18. enum { IDD = IDD_BMPINFO_DIALOG };
  19. DWORD m_FileType;
  20. DWORD m_FileSize;
  21. DWORD m_Reserved1;
  22. DWORD m_Reserved2;
  23. DWORD m_OffBits;
  24. DWORD m_BitmapHeaderSize;
  25. LONG m_BitmapWidth;
  26. LONG m_BitmapHeight;
  27. DWORD m_BitmapPlanes;
  28. DWORD m_BitmapBitCount;
  29. DWORD m_BitmapCompression;
  30. DWORD m_BitmapImageSize;
  31. LONG m_BitmapXPelsPerMeter;
  32. LONG m_BitmapYPelsPerMeter;
  33. DWORD m_BitmapClrUsed;
  34. DWORD m_BitmapClrImportant;
  35. BOOL m_bManipulateImage;
  36. //}}AFX_DATA
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CBMPInfoDlg)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. HICON m_hIcon;
  46. // Generated message map functions
  47. //{{AFX_MSG(CBMPInfoDlg)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnPaint();
  50. afx_msg HCURSOR OnQueryDragIcon();
  51. afx_msg void OnImageManipulationCheckbox();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. CString RipFileName();
  56. void UpdateFileInformation();
  57. void ManipulateImage(CFile *pImageFile);
  58. CString m_BitmapFileName;
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_BMPINFODLG_H__5387ABF9_990C_11D2_B482_009027226441__INCLUDED_)