SAMPLE: How to Use MSOUTLIN.VBX in an MFC Application

Last reviewed: July 18, 1997
Article ID: Q113111
1.00 1.50 WINDOWS kbprg kbfile

The information in this article applies to:

  • The Microsoft Foundation Classes (MFC) included with:

        - Microsoft Visual C++ for Windows, versions 1.0 and 1.5
    

SUMMARY

OUTVBX is a sample program that demonstrates how to use the Outline VBX control (MSOUTLIN.VBX) from Microsoft Visual Basic 3.0 within a Microsoft Foundation Class (MFC) application. The Outline control allows you to display data in a hierarchical list box that supports five different styles.

Download OUTVBX.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download OUTVBX.EXE (size: 60569 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \softlib\mslfiles directory
          Get OUTVBX.EXE (size: 60569 bytes) 
    

MORE INFORMATION

Microsoft Visual Basic 3.0 introduced a hierarchical list box VBX control, which can be very useful to display data. The Outline control supports the use of bitmaps and lines to expand and collapse the visual display (similar to the File Manager in Windows 3.1).

This sample program also shows how to dynamically modify a picture property for a typical VBX control. The default picture values in MSOUTLIN.VBX are not functional in an MFC application, and therefore the properties must be reinitialized during run time. The pictures used are included as resources by App Studio in the .RC file.


Additional reference words: kbinf 1.00 1.50 2.00 2.50 VBX outline
KBCategory: kbprg kbfile
KBSubcategory: MfcVBX
Keywords : kb16bitonly MfcVBX kbfile kbprg
Technology : kbMfc
Version : 1.00 1.50
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.