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.

49 lines
1.3 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation 1991-1994
  4. //
  5. // File: undo.h
  6. //
  7. // History:
  8. // There is no history. This file doesn't exist
  9. //
  10. //---------------------------------------------------------------------------
  11. #ifndef _UNDO_INC
  12. #define _UNDO_INC
  13. typedef struct _UNDOATOM * LPUNDOATOM;
  14. typedef struct _UNDOATOM {
  15. UINT uType;
  16. HWND hwnd;
  17. LPVOID lpData;
  18. FILEOP_FLAGS foFlags; //Misc flags.
  19. void (CALLBACK* GetText)(LPUNDOATOM lpua, TCHAR * buffer, int type);
  20. void (CALLBACK* Release)(LPUNDOATOM lpua);
  21. void (CALLBACK* Invoke)(LPUNDOATOM lpua);
  22. } UNDOATOM;
  23. EXTERN_C LPUNDOATOM s_lpuaUndoHistory;
  24. #define UNDO_MENUTEXT 1
  25. #define UNDO_STATUSTEXT 2
  26. STDAPI_(void) GetUndoText(LPTSTR lpszBuffer, UINT cchBuffer, int type);
  27. void FreeUndoList();
  28. STDAPI_(void) AddUndoAtom(LPUNDOATOM lpua);
  29. STDAPI_(void) Undo(HWND hwnd);
  30. STDAPI_(void) NukeUndoAtom(LPUNDOATOM lpua);
  31. STDAPI_(BOOL) IsUndoAvailable();
  32. STDAPI_(void) EnumUndoAtoms(int (CALLBACK* lpfn)(LPUNDOATOM lpua, LPARAM lParam), LPARAM lParam);
  33. #define EUA_DONOTHING 0x00
  34. #define EUA_DELETE 0x01
  35. #define EUA_ABORT 0x02
  36. #define EUA_DELETEABORT 0x03 // or of abort and delete
  37. STDAPI_(void) SuspendUndo(BOOL f);
  38. #endif // _UNDO_INC