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.

38 lines
625 B

  1. // Copyright (c) 1996-1997, Microsoft Corp. All rights reserved.
  2. #if _MSC_VER > 1000
  3. #pragma once
  4. #endif
  5. #ifndef __CPRINT_H__
  6. #define __CPRINT_H__
  7. #ifndef _CDLG_H_
  8. #include "cdlg.h"
  9. #endif
  10. #include "resource.h"
  11. enum {
  12. PRINT_CUR_TOPIC,
  13. PRINT_CUR_HEADING,
  14. PRINT_CUR_ALL,
  15. };
  16. class CPrint : public CDlg
  17. {
  18. public:
  19. CPrint(HWND hwndParent) : CDlg(hwndParent, CPrint::IDD) {
  20. m_action = PRINT_CUR_TOPIC;
  21. };
  22. BOOL OnBeginOrEnd(void);
  23. __inline void SetAction(int action) { m_action = action; }
  24. __inline int GetAction() { return m_action; }
  25. enum { IDD = IDDLG_TOC_PRINT };
  26. int m_action;
  27. };
  28. #endif // __CPRINT_H__