Index   Commented   Search   About

OLEUIPASTEFLAG

This enumeration is used to indicate the user options that are available to the user when pasting this format, and within which group or list of choices (Paste, Paste Link, etc) this entry is to be available. OLEUIPASTEFLAG is used by the OLEUIPASTEENTRY structure. It

typedef enum tagOLEUIPASTEFLAG

{

OLEUIPASTE_ENABLEICON = 2048,

OLEUIPASTE_PASTEONLY = 0,

OLEUIPASTE_PASTE = 512,

OLEUIPASTE_LINKANYTYPE = 1024,

OLEUIPASTE_LINKTYPE1 = 1,

OLEUIPASTE_LINKTYPE2 = 2,

OLEUIPASTE_LINKTYPE3 = 4,

OLEUIPASTE_LINKTYPE4 = 8,

OLEUIPASTE_LINKTYPE5 = 16,

OLEUIPASTE_LINKTYPE6 = 32,

OLEUIPASTE_LINKTYPE7 = 64,

OLEUIPASTE_LINKTYPE8 = 128

} OLEUIPASTEFLAG;

OLEUIPASTE_ENABLEICON

If the container does not specify this flag for the entry in the OLEUIPASTEENTRYarray passed as input to OleUIPasteSpecial, the DisplayAsIcon button will be unchecked and disabled when the user selects the format that corresponds to the entry.

OLEUIPASTE_PASTEONLY

Indicates that the entry in the OLEUIPASTEENTRY array is valid for pasting only.

OLEUIPASTE_PASTE

Indicates that the entry in the OLEUIPASTEENTRYarray is valid for pasting. It may also be valid for linking if any of the following linking flags are specified. If it is valid for linking, then the following flags indicate which link types are acceptable by OR'ing together the appropriate OLEUIPASTE_LINKTYPE<#> values. These values correspond as follows to the array of link types passed to OleUIPasteSpecial:

OLEUIPASTE_LINKTYPE1=arrLinkTypes[0]

OLEUIPASTE_LINKTYPE2=arrLinkTypes[1]

OLEUIPASTE_LINKTYPE3=arrLinkTypes[2]

OLEUIPASTE_LINKTYPE4=arrLinkTypes[3]

OLEUIPASTE_LINKTYPE5=arrLinkTypes[4]

OLEUIPASTE_LINKTYPE6=arrLinkTypes[5]

OLEUIPASTE_LINKTYPE7=arrLinkTypes[6]

OLEUIPASTE_LINKTYPE8=arrLinkTypes[7]

where,

UINT arrLinkTypes[8] is an array of registered clipboard formats for linking. A maximum of 8 link types is allowed.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun