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.

59 lines
1.5 KiB

  1. /**************************************************/
  2. /* */
  3. /* */
  4. /* Gage when import bitmap */
  5. /* (Dialog) */
  6. /* */
  7. /* */
  8. /* Copyright (c) 1997-1999 Microsoft Corporation. */
  9. /**************************************************/
  10. class CEditGage : public CEdit
  11. {
  12. public:
  13. CEditGage();
  14. ~CEditGage();
  15. protected:
  16. //{{AFX_MSG(CEditGage)
  17. afx_msg void OnPaint();
  18. afx_msg void OnLButtonDown( UINT nFlags, CPoint point);
  19. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  20. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  21. //}}AFX_MSG
  22. DECLARE_MESSAGE_MAP()
  23. };
  24. class CGageDlg : public CDialog
  25. {
  26. public:
  27. CGageDlg(CWnd* pParent = NULL,
  28. LPTSTR szUserFont=NULL,
  29. PTSTR szBmpFile=NULL,
  30. LPTSTR szTtfFile=NULL,
  31. BOOL bIsWin95EUDC = FALSE); // standard constructor
  32. //{{AFX_DATA(CGageDlg)
  33. enum { IDD = IDD_GAGE };
  34. //}}AFX_DATA
  35. //{{AFX_VIRTUAL(CGageDlg)
  36. protected:
  37. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  38. //}}AFX_VIRTUAL
  39. private:
  40. CEditGage m_EditGage;
  41. TCHAR m_szUserFont[MAX_PATH];
  42. TCHAR m_szTtfFile[MAX_PATH];
  43. TCHAR m_szBmpFile[MAX_PATH];
  44. BOOL m_bIsWin95EUDC;
  45. protected:
  46. // Generated message map functions
  47. //{{AFX_MSG(CGageDlg)
  48. virtual BOOL OnInitDialog();
  49. virtual void OnOK();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };