File:  [WindowsNT SDKs] / mstools / ole20 / samples / ole2ui / convert.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:24:38 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

/*
 * CONVERT.H
 *
 * Internal definitions, structures, and function prototypes for the
 * OLE 2.0 UI Convert dialog.
 *
 * Copyright (c)1992 Microsoft Corporation, All Right Reserved
 */


#ifndef _CONVERT_H_
#define _CONVERT_H_


//Internally used structure
typedef struct tagCONVERT
    {
    //Keep this item first as the Standard* functions depend on it here.
    LPOLEUICONVERT     lpOCV;       //Original structure passed.
    
    /*
     * What we store extra in this structure besides the original caller's
     * pointer are those fields that we need to modify during the life of
     * the dialog but that we don't want to change in the original structure
     * until the user presses OK.
     */
              
    DWORD               dwFlags;  // Flags passed in
    HWND                hListVisible;  // listbox that is currently visible
    HWND                hListInvisible;  // listbox that is currently hidden
    CLSID               clsid;    // Class ID sent in to dialog: IN only
    DWORD               dvAspect;
    BOOL                fCustomIcon;
    UINT                IconIndex;         // index (in exe) of current icon
    LPSTR               lpszIconSource;    // path to current icon source
    LPSTR               lpszCurrentObject;
    LPSTR               lpszConvertDefault;
    LPSTR               lpszActivateDefault;
    } CONVERT, *PCONVERT, FAR *LPCONVERT;



//Internal function prototypes in CONVERT.C
BOOL CALLBACK EXPORT ConvertDialogProc(HWND, UINT, WPARAM, LPARAM);
BOOL            FConvertInit(HWND hDlg, WPARAM, LPARAM);
UINT            FPopulateListbox(HWND hListbox, CLSID cID);
BOOL            IsValidClassID(CLSID cID);      
void            SetConvertResults(HWND, LPCONVERT);
UINT            FillClassList(CLSID clsid, HWND hList, HWND hListInvisible, LPSTR FAR *lplpszCurrentClass, BOOL fIsLinkedObject, WORD wFormat);
BOOL            FormatIncluded(LPSTR szStringToSearch, WORD wFormat);
void            UpdateCVClassIcon(HWND hDlg, LPCONVERT lpCV, HWND hList);
void            SwapWindows(HWND, HWND, HWND);
void            ConvertCleanup(HWND hDlg, LPCONVERT lpCV);

#endif // _CONVERT_H_

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.