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.

95 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. StartD.h : header file
  5. File History:
  6. JonY Jan-96 created
  7. --*/
  8. // StartD.h : header file
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CStartD dialog
  12. class CStartD : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CStartD(CWnd* pParent = NULL); // standard constructor
  17. ~CStartD();
  18. inline BOOL IsActive() {return m_bActive;}
  19. // Dialog Data
  20. //{{AFX_DATA(CStartD)
  21. enum { IDD = IDD_MUSTARD_DIALOG };
  22. CWizList m_lbWizList2;
  23. CWizList m_lbWizList;
  24. BOOL m_bStartup;
  25. //}}AFX_DATA
  26. // CStatPic m_statPic;
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CStartD)
  30. public:
  31. virtual BOOL PreTranslateMessage(MSG* pMsg);
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. protected:
  37. HICON m_hIcon;
  38. BOOL m_bActive;
  39. HACCEL m_hAccelTable;
  40. enum
  41. {
  42. ACCEL_USER = 0,
  43. ACCEL_GROUP,
  44. ACCEL_SHARE,
  45. ACCEL_PRINT,
  46. ACCEL_PROGRAMS = 0,
  47. ACCEL_MODEM,
  48. ACCEL_NETWORK,
  49. ACCEL_LICENSE
  50. };
  51. void HandleAccelerator1(USHORT nIndex);
  52. void HandleAccelerator2(USHORT nIndex);
  53. // Generated message map functions
  54. //{{AFX_MSG(CStartD)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnPaint();
  57. afx_msg void OnQuitButton();
  58. afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
  59. afx_msg HCURSOR OnQueryDragIcon();
  60. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  61. //}}AFX_MSG
  62. afx_msg void OnAccelGroup();
  63. afx_msg void OnAccelModem();
  64. afx_msg void OnAccelNetwork();
  65. afx_msg void OnAccelPrint();
  66. afx_msg void OnAccelShare();
  67. afx_msg void OnAccelUser();
  68. afx_msg void OnAccelPrograms();
  69. afx_msg void OnAccelLicense();
  70. DECLARE_MESSAGE_MAP()
  71. private:
  72. CFont* m_pFont1;
  73. CFont* m_pFont2;
  74. void GetIconIndices(LPCTSTR pszPathName, HICON* hiNormal, HICON* hiSelected);
  75. void GetCPLIcon(UINT pszCplItem, HICON* hiNormal, HICON* hiSelected, BOOL bPrinters = FALSE);
  76. HRESULT GetCPLObject(UINT pszCplItem, LPSHELLFOLDER pshf, LPITEMIDLIST* ppidl, HICON* hiNormal, HICON* hiSelected, LPITEMIDLIST pParentPIDL);
  77. };