undo.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  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.               
  15. typedef struct _UNDOATOM {
  16.     UINT uType;
  17.     HWND hwnd;
  18.     LPVOID lpData;
  19.     FILEOP_FLAGS  foFlags;  //Misc flags.
  20.     
  21.     void (CALLBACK* GetText)(LPUNDOATOM lpua, TCHAR * buffer, int type);
  22.     void (CALLBACK* Release)(LPUNDOATOM lpua);
  23.     void (CALLBACK* Invoke)(LPUNDOATOM lpua);
  24.     
  25. } UNDOATOM;
  26. EXTERN_C LPUNDOATOM s_lpuaUndoHistory;
  27. #define UNDO_MENUTEXT    1
  28. #define UNDO_STATUSTEXT  2
  29. STDAPI_(void) GetUndoText(LPUNDOATOM lpua, LPTSTR lpszBuffer, UINT cchBuffer, int type);
  30. STDAPI_(LPUNDOATOM) _PeekUndoAtom(LPINT lpi);
  31. #define PeekUndoAtom() _PeekUndoAtom(NULL)
  32. STDAPI_(void) AddUndoAtom(LPUNDOATOM lpua);
  33. STDAPI_(void) Undo(HWND hwnd);
  34. STDAPI_(void) NukeUndoAtom(LPUNDOATOM lpua);
  35. STDAPI_(BOOL) IsUndoAvailable();
  36. STDAPI_(void) EnumUndoAtoms(int (CALLBACK* lpfn)(LPUNDOATOM lpua, LPARAM lParam), LPARAM lParam);
  37. #define EUA_DONOTHING   0x00 
  38. #define EUA_DELETE      0x01
  39. #define EUA_ABORT       0x02
  40. #define EUA_DELETEABORT 0x03  // or of abort and delete
  41. STDAPI_(void) SuspendUndo(BOOL f);
  42. #endif // _UNDO_INC