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.

84 lines
2.0 KiB

  1. #ifndef __IMGDLGS_H__
  2. #define __IMGDLGS_H__
  3. #define GRIDMIN 1 // Minimum grid coordinate value
  4. #define GRIDMAX 1024 // Maximum grid coordinate value
  5. // All App Studio dialog boxes should derive from this class...
  6. //
  7. class C3dDialog : public CDialog
  8. {
  9. public:
  10. C3dDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
  11. C3dDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
  12. virtual BOOL OnInitDialog();
  13. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  14. afx_msg void OnRobustOK();
  15. DECLARE_MESSAGE_MAP()
  16. };
  17. /***************************************************************************/
  18. // CColorTable dialog
  19. class CColorTable : public CDialog
  20. {
  21. // Construction
  22. public:
  23. CColorTable(CWnd* pParent = NULL); // standard constructor
  24. enum { IDD = IDD_COLORTABLE };
  25. void SetLeftFlag( BOOL bLeft) { m_bLeft = bLeft; }
  26. void SetColorIndex( int iColor ) { m_iColor = iColor; }
  27. int GetColorIndex() { return m_iColor; }
  28. // Implementation
  29. protected:
  30. BOOL m_bLeft;
  31. int m_iColor;
  32. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  33. // Generated message map functions
  34. //{{AFX_MSG(CColorTable)
  35. afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
  36. virtual BOOL OnInitDialog();
  37. afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
  38. afx_msg void OnDblclkColorlist();
  39. virtual void OnOK();
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. };
  43. /***************************************************************************/
  44. class CImgGridDlg : public C3dDialog
  45. {
  46. public:
  47. CImgGridDlg();
  48. BOOL OnInitDialog();
  49. void OnOK();
  50. void OnClickPixelGrid();
  51. void OnClickTileGrid();
  52. BOOL m_bPixelGrid;
  53. BOOL m_bTileGrid;
  54. int m_nWidth;
  55. int m_nHeight;
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. extern CSize NEAR g_defaultTileGridSize;
  59. extern BOOL NEAR g_bDefaultTileGrid;
  60. #endif // __IMGDLGS_H__