Leaked source code of windows server 2003
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.

42 lines
1.3 KiB

  1. #ifndef _INC_DSKQUOTA_YNTOALL_H
  2. #define _INC_DSKQUOTA_YNTOALL_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. /* File: yntoall.h
  5. Description: Declarations for class YesNoToAllDialog.
  6. This class provides a simple message box that includes an
  7. "apply to all" checkbox.
  8. Revision History:
  9. Date Description Programmer
  10. -------- --------------------------------------------------- ----------
  11. 05/28/97 Initial creation. BrianAu
  12. */
  13. ///////////////////////////////////////////////////////////////////////////////
  14. class YesNoToAllDialog
  15. {
  16. private:
  17. UINT m_idDialogTemplate;
  18. HWND m_hwndCbxApplyToAll;
  19. HWND m_hwndTxtMsg;
  20. LPTSTR m_pszTitle;
  21. LPTSTR m_pszText;
  22. BOOL m_bApplyToAll;
  23. static INT_PTR CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
  24. public:
  25. YesNoToAllDialog(UINT idDialogTemplate);
  26. ~YesNoToAllDialog(VOID);
  27. BOOL ApplyToAll(VOID)
  28. { return m_bApplyToAll; }
  29. INT_PTR CreateAndRun(HINSTANCE hInstance, HWND hwndParent, LPCTSTR pszTitle, LPCTSTR pszText);
  30. };
  31. #endif // _INC_DSKQUOTA_YNTOALL_H