home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SRC / AUXVARS.H_ / AUXVARS.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.3 KB  |  77 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library. 
  2. // Copyright (C) 1992 Microsoft Corporation 
  3. // All rights reserved. 
  4. //  
  5. // This source code is only intended as a supplement to the 
  6. // Microsoft Foundation Classes Reference and Microsoft 
  7. // QuickHelp documentation provided with the library. 
  8. // See these sources for detailed information regarding the 
  9. // Microsoft Foundation Classes product. 
  10.  
  11. // This file contains per-app state/variables for specific subsystems
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CEditView (find and replace state)
  15.  
  16. struct AFX_FRSTATE      // Find/Replace for CEditView
  17. {
  18.     CFindReplaceDialog* pFindReplaceDlg; // find or replace dialog
  19.     BOOL bFindOnly; // Is pFindReplace the find or replace?
  20.     CString strFind;    // last find string
  21.     CString strReplace; // last replace string
  22.     BOOL bCase; // TRUE==case sensitive, FALSE==not
  23.     int bNext;  // TRUE==search down, FALSE== search up
  24.  
  25.     AFX_FRSTATE();
  26. };
  27.  
  28. #ifndef NO_VBX_SUPPORT
  29. /////////////////////////////////////////////////////////////////////////////
  30. // VB specific application globals
  31.  
  32. class NEAR CVBPict;  // actual class implementation is private
  33.  
  34. struct AFX_VBSTATE
  35. {
  36.     // For Basic Channel to CFile mapping
  37.     CMapWordToPtr fileMap;
  38.  
  39.     // for currently loaded CVBControl models
  40.     CMapStringToPtr classMap;
  41.  
  42.     // Loaded VBX files
  43.     CPtrArray vbxFileList;
  44.     BOOL bPendingVBXRemovals;       // pending removals from vbxFileList
  45.  
  46.     // For picts
  47.     CVBPict NEAR* pHeadPictList;    // Global Picture List
  48.  
  49.     // For LOCAL Heap array for VB controls
  50.     CUIntArray heapHandles;         // array of selectors
  51.     UINT selCurrentHeap;            // selector for current heap
  52.  
  53.     AFX_VBSTATE();
  54.     ~AFX_VBSTATE();
  55. };
  56.  
  57. #ifndef _AFXDLL
  58. extern AFX_VBSTATE NEAR _afxVBState;
  59. #else
  60. #define _afxVBState (*_AfxGetAppData()->appVBState)
  61. #endif
  62.  
  63. #endif //!NO_VBX_SUPPORT
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // COleClientItem (OLE client stuff)
  67.  
  68. struct AFX_OCSTATE
  69. {
  70.     int cWaitForRelease;            // wait count for WAIT_FOR_RELEASE
  71.     // Strings loaded from app's resource fork
  72.     CString strObjectVerb;          // "&Object"
  73.     CString strEditVerb;            // "Edit"
  74. };
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77.