home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SRC / VBCTRL.H_ / VBCTRL.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.9 KB  |  49 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. // vbctrl.h - interface between CVBControl and private VB Runtime implementation
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. #define VBM__BASE           ( WM_USER + 0x0C00 )
  16. #define VBM_CREATED         ( VBM__BASE + 0x00 )
  17. #define VBM_INITIALIZE      ( VBM__BASE + 0x02 )
  18.  
  19. #define VBM_METHOD          ( VBM__BASE + 0x11 )
  20.  
  21. #define METH_ADDITEM    0x0001  // args are: cArgs, hszItem, [index]
  22. #define METH_REMOVEITEM 0x0002  // args are: cArgs, index
  23. #define METH_REFRESH    0x0003  // no args (lp == NULL)
  24. #define METH_MOVE       0x0004  // args are: cArgs, left, [top, [width, [height]]]
  25.  
  26. #define MODEL_fInitMsg      0x00000010L
  27. #define MODEL_fLoadMsg      0x00000020L
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // Shared globals
  31.  
  32. class CVBXFile;
  33.  
  34. extern CVBControl* NEAR _afxNewVBControl; // Set before CreateWindow
  35. extern CVBXFile* NEAR _afxVBXFileCur;   // for use of VBRegisterModel
  36. extern CFile* NEAR _afxFormFileCur; // used in vbcore2.cpp
  37.  
  38. // Address of routines for EnableVBXFloat
  39. extern int (PASCAL* NEAR _afxConvertFontSizeToTwipsProc)(LONG lFontSize);
  40. extern long (PASCAL* NEAR _afxConvertTwipsToFontSizeProc)(int nTwips);
  41. extern char BASED_CODE _afxVBPrefix[];
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // Other sometimes useful routines
  45.  
  46. BOOL _AfxIsStackOK(UINT nStackNeeded);
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49.