CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Posts
    30

    Question PowerPoint Automation

    I´m trying to do an app for PowerPoint automation. Since I am really knew on this I was woundering:

    How could I know what are the possible values that I could use for the methods I´ve found.

    For instance: I know that nNewValue = 2 makes the Window minimized on the code below. How can I find all the other possible values:

    void _Application::SetWindowState(long nNewValue)
    {
    static BYTE parms[] =
    VTS_I4;
    InvokeHelper(0x7ed, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
    nNewValue);
    }

    Thanks in advance!!!

  2. #2
    Join Date
    Aug 2000
    Location
    Pgh, PA, USA
    Posts
    134
    run the following...
    1. Start | Programs | Microsoft Visual C++ 6.0 | Microsoft Visual C++ 6.0 Tools | OLE View
    2. File | View TypeLib
    3. Filename... C:\Program Files\ Microsoft Office\Office\MsPpt9.olb
    4. Under typedef enum PpWindowState, you will find...
    typedef enum {
    ppWindowNormal = 1,
    ppWindowMinimized = 2,
    ppWindowMaximized = 3
    } PpWindowState;

    All the other enums are listed on the left side as well.
    Hope this helps

  3. #3
    Join Date
    Jul 2002
    Posts
    30
    That´s it Jeff!!

    Thank you very much again.

    Ric.

    P.S. As you noticed I´m pretty new on the Visual Studio tools!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured