Messages
This chapter describes the use of Messages in the Viewer. Messages are the primary way in which the developer and the view window interact. The implementation of message passing is different for each operating systems supported, but the messages themselves and the structures passed are for the most part generic.
Messages marked with an asterisk (*) are sent from the developer to the view window.
Messages marked with double asterisks (**) are sent from the view window to the developer.
Many messages pass pointers to structures in their lParam. All structures passed by the SCCVW messages are C structures. The packing of these structures compiled for Windows have 8-byte boundaries, per Microsoft’s requirement for Windows applications.
SCCVW_ADDANNOTATION
- This message allows the parent to add various annotations to a viewed document.
Parameters
-
wParam: Type of annotation to add, which should be one of the following:
- SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
- SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
- SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
lParam: A pointer to a structure of the type SCCVWHIDEPARABREAK80, SCCVWHIDETEXT80, SCCVWHILITETEXT41, SCCVWINSERTBITMAP42, SCCVWINSERTICON41, SCCVWINSERTPARABREAK80, or SCCVWINSERTTEXT80. Also backwards compatible with SCCVWHILITETEXT40, SCCVWINSERTICON40, or SCCVWHIDETEXT40 and SCCVWHIDETEXT41.
Return Value
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.
Comments
Annotations can be added in any order, but the underlying code is optimized for additions to the end of the list. It takes many hundreds of annotations for this effect to be noticeable. The insertion of icons and bitmaps is only supported on the Windows platforms. Adding annotations to unprintable characters may not always display the annotation.
Platform
Windows
SCCVWHIDEPARABREAK80 Structure
This structure is used by the SCCVW_ADDANNOTATION message to specify a paragraph break to be deleted.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWHIDEPARABREAK80tag
{
VTDWORD dwSize;
VTDWORD dwUser;
SCCVWPOS sParaPos;
VTDWORD dwData;
} SCCVWHIDEPARABREAK80, * PSCCVWHIDEPARABREAK80;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
SCCVWHIDETEXT80 Structure
This structure is used by the SCCVW_ADDANNOTATION message to remove an area of text. Also backward compatible with SCCVWHIDETEXT40 and SCCVWHIDETEXT41.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWHIDETEXT80tag
{
VTDWORD dwSize;
VTDWORD dwUser;
SCCVWPOS sStartPos;
SCCVWPOS sEndPos;
VTDWORD dwData;
} SCCVWHIDETEXT80, * PSCCVWHIDETEXT80;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
SCCVWHILITETEXT41 Structure
This structure is used by the SCCVW_ADDANNOTATION message to specify an area of text to color. Also backward compatible with SCCVWHILITETEXT40.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWHILITETEXT41tag
{
VTDWORD dwSize;
VTDWORD dwUser;
SCCVWPOS sStartPos;
SCCVWPOS sEndPos;
VTDWORD dwInteraction;
VTDWORD dwData;
VTDWORD dwDummy1;
VTDWORD dwDummy2;
VTDWORD dwDisplay;
} SCCVWHILITETEXT41;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHILITETEXT41).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos; Position of last character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.
-
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
-
dwDummy1; Reserved
-
dwDummy2; Reserved
-
dwDisplay: 32 bits packed with information about how the highlight should display. If SCCVW_USESTYLE is set, then the LOWORD contains the style number to use as defined by the SCCVW_HILITESTYLE message. If styles are not used, then set using one of the values in the following table:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)
-
SCCVWINSERTBITMAP42 Structure
This structure is used by the SCCVW_ADDANNOTATION message to insert a bitmap at a specific location in the text.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwUser;
VTDWORD dwData;
SCCVWPOS sBitmapPos;
HICON hBitmap;
VTDWORD dwInteraction;
} SCCVWINSERTBITMAP42;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.
-
SCCVWINSERTICON41 Structure
This structure is used by the SCCVW_ADDANNOTATION message insert an icon at a specific location in the text. Also backward compatible with SCCVWINSERTICON40.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwUser;
VTDWORD dwData;
SCCVWPOS sIconPos;
HICON hIcon;
VTDWORD dwInteraction;
} SCCVWINSERTICON41;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.0
SCCVWINSERTPARABREAK80 Structure
This structure is used by the SCCVW_ADDANNOTATION message to insert a paragraph break between two characters.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWINSERTPARABREAK80tag
{
VTDWORD dwSize;
VTDWORD dwUser;
SCCVWPOS sParaPos;
VTDWORD dwData;
} SCCVWINSERTPARABREAK80, * PSCCVWINSERTPARABREAK80;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.2
SCCVWINSERTTEXT80 Structure
This structure is used by the SCCVW_ADDANNOTATION message to insert text between two characters.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWINSERTTEXT80tag
{
VTDWORD dwSize;
VTDWORD dwUser;
SCCVWPOS sTextPos;
VTDWORD dwData;
VTLPWORD pText;
VTDWORD dwLength;
} SCCVWINSERTTEXT80, * PSCCVWINSERTTEXT80;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.3
SCCVW_ANNOTATIONEVENT
-
- This message informs the OEM that some user action has been taken on an annotation.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.4
Return Value
If the return value is 0, the Viewer will perform the default behavior for this event on this annotation. If the return value is anything but 0, the Viewer will not perform any action on this annotation.
Comments
The transition events may be generated due to mouse or keyboard movement of the cursor. This message is only supported for annotations added to word processor formats. The OEM will always receive a single-click event before a double-click event.
Platform
Windows
SCCVWANNOTATIONEVENT41 Structure
This structure is used by the SCCVW_ANNOTATIONEVENT message to inform the OEM what event has occurred. Also backward compatible with SCCVWANNOTATIONEVENT40.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwEvent;
VTDWORD dwUser;
VTDWORD dwData;
} SCCVWANNOTATIONEVENT41;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.5
SCCVW_BAILOUT
-
- This message informs the OEM that file viewing has stopped because of an error or some other reason. The developer may decide to handle this message himself, or allow the default action, which will display an appropriate message.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.7
Return Value
If the return value is 0, the Viewer will perform the default behavior for this event which is to display an appropriate message. If the return value is anything but 0, the Viewer will only clear the display window.
Platform
Windows
SCCVW_CLEARANNOTATIONS
- This message allows the developer to selectively remove annotations.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.9
Platforms
Windows
SCCVW_CLOSEFILE
- Causes the viewer to stop viewing the current file and return to its idle state.
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.1
Return Value
none
Platform
Windows
SCCVW_COMPPOSITIONS
- This message allows the parent to compare two SCCVWPOSs. OEMs should only compare SCCVWPOS variables using this message since the structure size of SCCVWPOS is subject to change.
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.2
Return Value
One of the following values:
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.3
Platforms
Windows
SCCVWCOMPPOSITIONS41 Structure
This structure is passed by the OEM through the SCCVW_COMPPOSITIONS message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
PSCCVWPOS pPosA;
PSCCVWPOS pPosB;
} SCCVWCOMPPOSITIONS41;
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.4
SCCVW_CONTEXTMENU
-
- This message is sent to the parent of the view window when a right mouse click occurs inside the view window. The developer may decide to handle that interaction, or allow the Viewer to pop up its context menu.
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.5
Return Value
If the return value is 0, the Viewer will pop up its own context menu. If the return value is anything but 0, the Viewer does nothing.
Platform
Windows
SCCVW_COPY
- This message allows the parent to copy the area defined by two positions into memory in a given format.
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.6
Return Value
One of the following values:
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.7
Platforms
Windows
SCCVWCOPY41 Structure
This structure is passed by the OEM through the SCCVW_COPY message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwOptions;
VTDWORD dwFormatId;
SCCVWPOS sStartPos;
SCCVWPOS sEndPos;
VTDWORD dwDataHandle;
VTDWORD dwDataSize;
VTDWORD dwMessageId;
} SCCVWCOPY41;
Parameters
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.8
SCCVW_COPYTOCLIP
- Causes the viewer to copy the current selection (if any) to the clipboard.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.1
Return Value
none
Platforms
Windows
SCCVW_DEINITDRAWPAGE
- This message de-initializes the page drawing routines. This message must be called after all calls to SCCVW_DRAWPAGE.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.2
Platforms
Windows
SCCVW_DISPLAYCHANGE
- *This message is sent to the developer whenever the display engine changes.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.3
Comments
A reasonable response to this message might be to call SCCVW_GETDISPLAYINFO, if you need this kind of information.
Platforms
Windows
SCCVW_DISPLAYPOSITION
- This message allows the parent to bring any position into view and provides some control over the placement of the position in the view.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.4
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.5
Comments
This message does not cause the cursor to be located at the defined position. If cursor placement is required then use SCCVW_SETSELECTION.
Platforms
Windows
SCCVWDISPLAYPOSITION41 Structure
This structure is passed by the OEM through the SCCVW_DISPLAYPOSITION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwDisplayOptions
SCCVWPOS sPos;
} SCCVWDISPLAYPOSITION41;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.6
SCCVW_DODIALOG
- This message invokes one of the Viewer’s built in dialogs.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDEPARABREAK80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sParaPos: Position of first paragraph break to be hidden. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.8
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.0
Platform
Windows
SCCVW_DOHELP
-
- This message is sent to the developer whenever a help button has been pressed in one of the Viewer’s dialogs.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.1
Platform
Windows
SCCVW_DOMENUITEM
- This message should be called when the developer’s application detects user interaction with a menu having an ID greater than the value set by SCCVW_SETMENUMAX or greater than SCCVW_DEFAULTMENUMAX if SCCVW_SETMENUMAX was not called.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.3
Platform
Windows
SCCVW_DRAWPAGE
- This message draws a page of the currently viewed file to a rectangle and device of the OEM’s choice.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.4
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.5
Platforms
Windows
SCCVWDRAWPAGE41 Structure
This structure is passed by the developer through the SCCVW_DRAWPAGE message.
Structure
A C data structure defined in sccvw_w.h, as follows:
Windows Structure
typedef struct SCCVWDRAWPAGE41tag
{
VTDWORD dwSize;
VTDWORD dwPageToDraw;
VTDWORD dwReserved;
VTDWORD dwFlags;
VTLONG lUnitsPerInch;
VTLONG lFormatWidth;
VTLONG lFormatHeight;
VTLONG lTop;
VTLONG lLeft;
VTLONG lBottom;
VTLONG lRight;
VTLONG lResultTop;
VTLONG lResultLeft;
VTLONG lResultBottom;
VTLONG lResultRight;
HDC hOutputDC;
HDC hFormatDC;
HPALETTE hPalette;
} SCCVWDRAWPAGE41, * PSCCVWDRAWPAGE41;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.6
Comments
How the SCCVW_DRAWPAGE message interprets the contents of the SCCVWDRAWPAGE41 structure on a Windows system depends somewhat on the nature of the hOutputDC. If hOutputDC is NOT a metafile DC or the SCCVW_DPFLAG_NOTMETAFILE flag is set, draw page sets the DC to MM_ANIOSTROPIC mode, sets the window extents/origin and sets the viewport extents/origin so the page will be drawn into the rectangle defined by lLeft/lTop/lRight/lBottom. If hOutputDC is a metafile DC, draw page still sets the mode to MM_ANISOTROPIC and sets the window extents/origin, but does not set the viewport. This produces a scalable metafile allowing the developer to later play back the metafile to any rectangle by setting the viewport extents and origin before playing the metafile.
SCCVW_ENABLEAPP
- *This message is sent to the developer whenever the developer application should be disabled/enabled. This message is sent before and after dialogs and printing. It allows the developer to disable any part of the application which could affect the view window.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHIDETEXT80).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos: Position of last character to be hidden. Result of SCCVW_MAPACCTOPOS OR result of SCCVWMAKEPOS(id,offset).
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT messages.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.9
Return Value
Must be SCCVWERR_MESSAGEHANDLED, which tells the view window the message has been handled. Any other return value will cause the view window to try the default disabling method for that platform. For example, under Windows if the developer does not process this message and return SCCVWERR_MESSAGEHANDLED, the view window will use EnableWindow to disable/enable its parent. If this default behavior is acceptable, simply return 0.
Platform
Windows
SCCVW_FILECHANGE
-
- This message is sent to the developer whenever the file being viewed is changed, such as on a SCCVW_VIEWFILE or SCCVW_CLOSEFILE message. A reasonable response to this message might be to call SCCVW_GETFILEINFO to get information about the new file to display within your UI.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHILITETEXT41).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos; Position of last character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.
-
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
-
dwDummy1; Reserved
-
dwDummy2; Reserved
-
dwDisplay: 32 bits packed with information about how the highlight should display. If SCCVW_USESTYLE is set, then the LOWORD contains the style number to use as defined by the SCCVW_HILITESTYLE message. If styles are not used, then set using one of the values in the following table:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)1
-
Platform
Windows
SCCVW_FINDANNOTATION
- This message allows the parent to find an annotation and retrieve information associated with the annotation. A variety of options are provided for locating an annotation.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHILITETEXT41).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos; Position of last character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.
-
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
-
dwDummy1; Reserved
-
dwDummy2; Reserved
-
dwDisplay: 32 bits packed with information about how the highlight should display. If SCCVW_USESTYLE is set, then the LOWORD contains the style number to use as defined by the SCCVW_HILITESTYLE message. If styles are not used, then set using one of the values in the following table:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)3
-
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWHILITETEXT41).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos; Position of last character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.
-
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
-
dwDummy1; Reserved
-
dwDummy2; Reserved
-
dwDisplay: 32 bits packed with information about how the highlight should display. If SCCVW_USESTYLE is set, then the LOWORD contains the style number to use as defined by the SCCVW_HILITESTYLE message. If styles are not used, then set using one of the values in the following table:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)4
-
Platform
Windows
SCCVWFINDANNOTATION41 Structure
This structure is passed by the OEM through the SCCVW_FINDANNOTATION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwFindOptions;
VTDWORD dwUserTest;
SCCVWPOS sSearchPos;
VTDWORD dwUserResult;
SCCVWPOS sStartPos;
SCCVWPOS sEndPos;
VTDWORD dwData;
} SCCVWFINDANNOTATION41;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWHILITETEXT41).
-
dwUser: Unique ID that may be used later to remove, jump to or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
sStartPos: Position of first character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
sEndPos; Position of last character to be highlighted. Result of SCCVWMAKEPOS(id,offset) macro or result of SCCVW_MAPPOSITION message.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.
-
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION.
-
dwDummy1; Reserved
-
dwDummy2; Reserved
-
dwDisplay: 32 bits packed with information about how the highlight should display. If SCCVW_USESTYLE is set, then the LOWORD contains the style number to use as defined by the SCCVW_HILITESTYLE message. If styles are not used, then set using one of the values in the following table:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)5
-
SCCVW_FINDPOSITION
- This message allows the parent to find a position in terms of a SCCVWPOS with numerous options. The position returned can then be used by any message which requires an SCCVWPOS as input. All of the find options are relative to the currently viewed section.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.2
Return Value
One of the following values:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.3
Platforms
Windows
SCCVWFINDPOSITION41 Structure
This structure is passed by the OEM through the SCCVW_FINDPOSITION message. Many of the find options are only supported for word processing file types.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwFindOptions;
SCCVWPOS sSearchPos;
SCCVWPOS sResultPos;
} SCCVWFINDPOSITION41;
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.4
Comments
Many of the find options are only supported for word processing file types. These include SCCVW_STARTDISPLAYPOS, SCCVW_ENDDISPLAYPOS, SCCVW_FINDPREVLINEPOS, SCCVW_NEXTLINEPOS, SCCVW_PREVWORDPOS, and SCCVW_NEXTWORDPOS.
SCCVW_FREEFILEINFO
Deallocates the file name buffer allocated during the SCCVW_GETFILEINFO message.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.6
Return Value
SCCVWERR_OK: call was successful
Platform
Windows
SCCVW_GETANNOTATIONDATA
- This message is provided to allow the developer to retrieve extended data associated with annotations that are internally created by the Viewer. The technology currently creates annotations to support hyperlinks and bookmarks defined in the original file.
When the technology adds hyperlink annotations, the dwUser member is set to SCCVW_USERHYPERTAG OR-ed with a zero-based count of the current hyperlink. When the technology adds bookmark annotations, the dwUser member is set to SCCVW_USERBOOKMARKTAG OR-ed with a zero-based count of the current bookmark. This allows OEMs to use all of the related annotation messages on these internal annotations. Extended data is available for internal annotations and can be retrieved using this message.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.7
Return Value
One of the following values:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.8
Platform
Windows
SCCVWGETANNOTATIONDATA Structure
This structure is passed by the OEM through the SCCVW_GETANNOTATIONDATA message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwUser;
VTDWORD dwData;
VTDWORD dwResultDataSize;
VTVOID pData;
VTDWORD dwDataType;
} SCCVWGETANNOTATIONDATA;
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the highlighted text is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive a SCCCVW_ANNOTATIONEVENT when the highlighted text is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions into the annotation.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive a SCCVW_ANNOTATIONEVENT when the cursor transitions out of the annotation.9
SCCVW_GETCLIPINFO
- This message returns flags that specify the readiness of the view window to manipulate clipboard information.
Parameters
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)1
Return Value
Zero or more of the following flags OR-ed together:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)2
Platform
Windows
SCCVW_GETCURRENTPAGENUMBER
For this message, both wParam and lParam are ignored (but should be set to zero anyway). When the viewer receives this message, it returns either a number or the value 0 to indicate that a current page number isn’t available.
The page number is available when the word processing display engine is in preview mode, and not available when it is in draft or normal mode. For other formats such as spreadsheets, presentations, and multi-page images, the page number is equivalent to the number of the current sheet, slide, or image.
Parameters
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)3
Return Value
Zero or the current page number
SCCVW_GETDISPLAYINFO
- Returns information about the current display engine, if any.
Parameters
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)4
Return Value
One of the following values:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)5
Platform
Windows
SCCVWDISPLAYINFO40 and SCCVWDISPLAYINFO80 Structures
These structures are passed by the developer to the SCCVW_GETDISPLAYINFO message handler. Note that while both of these structures can accept Unicode, only the SCCVWDISPLAYINFO80 structure is truly intended to accept Unicode.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTTCHAR szName[MAX_DISPLAYINFO_SZNAME_SIZE];
VTDWORD hMenu;
VTDWORD dwFunctions;
VTDWORD dwType
} SCCVWDISPLAYINFO40;
typedef struct
{
VTDWORD dwSize;
VTWORD szName[MAX_DISPLAYINFO_SZNAME_SIZE];
VTDWORD hMenu;
VTDWORD dwFunctions;
VTDWORD dwType
} SCCVWDISPLAYINFO80;
Parameters
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)6
Comments
The popup menus available for each display engine allow the developer to place powerful, file-type-specific options/events in the hand of the user without designing his/her own menus and without dealing with the API for setting options/events. The basic procedure for doing this is as follows.
When you get the SCCVW_DISPLAYCHANGE message sent by the view window, call SCCVW_GETDISPLAYINFO. If hMenu is not 0, remove any previous popup you added and use the szName and hMenu parameters of the SCCVWDISPLAYINFO40 or SCCVWDISPLAYINFO80 structure to add the display engine’s popup menu to your menu bar. If hMenu is 0, just remove any previous menu.
SCCVW_GETDRAWPAGEINFO
- This message will get page information about the requested page. It is to be used within a SCCVW_INITDRAWPAGE and a SCCVW_DEINITDRAWPAGE before the SCCVW_DRAWPAGE to get the best page size information for that page.
Parameters
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)8
Return Value
One of the following values:
-
SCCVW_BDEFAULT (Do not change the background color) OR-ed with SCCVW_FDEFAULT (Do not change the foreground color)
-
SCCVW_BBLACK (Black background) OR-ed with SCCVW_FBLACK (Black foreground)
-
SCCVW_BDARKRED (Dark Red background) OR-ed with SCCVW_FDARKRED (Dark Red foreground)
-
SCCVW_BDARKGREEN (Dark Green background) OR-ed with SCCVW_FDARKGREEN (Dark Green foreground)
-
SCCVW_BDARKYELLOW (Dark Yellow background) OR-ed with SCCVW_FDARKYELLOW (Dark Yellow foreground)
-
SCCVW_BDARKBLUE (Dark Blue background) OR-ed with SCCVW_FDARKBLUE (Dark Blue foreground)
-
SCCVW_BDARKMAGENTA (Dark Magenta background) OR-ed with SCCVW_FDARKMAGENTA (Dark Magenta foreground)
-
SCCVW_BDARKCYAN (Dark Cyan background) OR-ed with SCCVW_FDARKCYAN (Dark Cyan foreground)
-
SCCVW_BLIGHTGRAY (Light Gray background) OR-ed with SCCVW_FLIGHTGRAY (Light Gray foreground)
-
SCCVW_BGRAY (Gray background) OR-ed with SCCVW_FGRAY (Gray foreground)
-
SCCVW_BRED (Red background) OR-ed with SCCVW_FRED (Red foreground)
-
SCCVW_BGREEN (Green background) OR-ed with SCCVW_FGREEN (Green foreground)
-
SCCVW_BYELLOW (Yellow background) OR-ed with SCCVW_FYELLOW (Yellow foreground)
-
SCCVW_BBLUE (Blue background) OR-ed with SCCVW_FBLUE (Blue foreground)
-
SCCVW_BMAGENTA (Magenta background) OR-ed with SCCVW_FMAGENTA (Magenta foreground)
-
SCCVW_BCYAN (Cyan background) OR-ed with SCCVW_FCYAN (Cyan foreground)
-
SCCVW_BWHITE (White background) OR-ed with SCCVW_FWHITE (White foreground)9
Platform
Windows
SCCVWDRAWPAGEINFO Structure
This structure is passed by the developer through the SCCVW_GETDRAWPAGEINFO message.
Structure
A C data structure defined in sccvw_w.h (Windows), as follows:
Windows Structure
typedef struct SCCVWDRAWPAGEINFOtag
{
VTDWORD dwSize;
VTDWORD dwPageToDraw;
VTDWORD dwReserved;
VTDWORD dwFlags;
VTLONG lUnitsPerInch;
VTLONG lFormatWidth;
VTLONG lFormatHeight;
VTLONG lTableWidth;
HDC hOutputDC;
HDC hFormatDC;
} SCCVWDRAWPAGEINFO, * PSCCVWDRAWPAGEINFO;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.0
-
SCCVW_GETFILEACCESSDATA
** This message is sent from the view window to the developer when the technology encounters a file that requires additional information to access its contents.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.1
-
Return Value
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.3
-
This message will be repeatedly sent if the information provided is not valid (such as the wrong password). It is the responsibility of the application to provide the correct information or return SCCERR_CANCEL.
NOTE: Not all formats that use passwords are supported. Only Microsoft Office binary (97-2003), Microsoft Office 2007, Microsoft Outlook PST 97-2013, Lotus NSF, PDF (with RC4 & AES 128-bit encryption), and Zip (with AES 128- & 256-bit, ZipCrypto) are currently supported.
SCCVW_GETFILEINFO
- Returns information about the file currently being viewed.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.4
-
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.5
-
Platform
Windows
SCCVWFILEINFO40 and SCCVWFILEINFO80 Structures
These structures can be passed by the developer to the SCCVW_GETFILEINFO message. Note that while both of these structures can accept Unicode, only the SCCVWFILEINFO80 structure is truly intended to accept Unicode.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTTCHAR szDisplayName[SCCVW_DISPLAYNAMEMAX];
VTDWORD dwFileId;
VTTCHAR szFileIdName[SCCVW_FILEIDNAMEMAX];
VTTCHAR szFileName[SCCVW_FILENAMEMAX];
} SCCVWFILEINFO40;
typedef struct
{
VTDWORD dwSize;
VTWORD szDisplayName[SCCVW_DISPLAYNAMEMAX];
VTDWORD dwFileId;
VTWORD szFileIdName[SCCVW_FILEIDNAMEMAX];
VTWORD szFileName[SCCVW_FILENAMEMAX];
} SCCVWFILEINFO80;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.6
-
SCCVW_GETIDEALWINDOWSIZE
- This message allows the developer to determine the ideal window size to use for the loaded document. This is especially useful when viewing graphic file formats.
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.7
-
Return Value
One of the following values:
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.8
-
Comments
Since this message cannot determine the ideal window size until the document is already loaded, it is recommended that the initial view window be hidden when created, and shown after resizing using the results of this message. Also, if the OEM is taking over control of the scroll bars, it should be done prior to using this message.
Platform
Windows
SCCVWIDEALSIZE50 Structure
This structure is passed by the OEM through the SCCVW_GETIDEALWINDOWSIZE message.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCVWIDEALSIZE50tag
{
VTDWORD dwSize;
VTDWORD dwFlags;
VTDWORD dwMaxWidth;
VTDWORD dwMaxHeight;
VTDWORD dwResultWidth;
VTDWORD dwResultHeight;
} SCCVWIDEALSIZE50,* PSCCVWIDEALSIZE50;
Parameters
-
dwSize: Must be set by the OEM to sizeof(SCCVWINSERTBITMAP42).
-
dwUser: Unique ID that may be used later to remove, jump to, or otherwise identify this particular annotation or a set of annotations. Always initialize this value to 0 if you are not using this functionality. The use of the high bit is reserved for internal annotation tagging.
-
dwData: Additional data associated with this annotation. It can later be retrieved using SCCVW_FINDANNOTATION or SCCVW_GETANNOTATIONINFO.
-
sBitmapPos; Position of the character before which the icon will be appear. Result of SCCVWMAKEPOS(id,offset) macro OR result of SCCVW_MAPACCTOPOS.
Note: Using the SCCVWMAKEPOS macro is no longer recommended but supported for backward compatibility. See the Comments section of the SCCVW_GETRAWTEXT message section.
-
hBitmap: Handle to the Windows bitmap to display.
-
dwInteraction: The type of events that the OEM would like to receive for this annotation.
Note: Interaction events are only supported in word processor formats. Should be one or more of the following OR-ed together:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.9
-
SCCVW_GETOPTION
- This message allows the developer to get the current or default value of an option.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.0
Return Value
One of the following values:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.1
Platform
Windows
SCCVWOPTIONSPEC40 Structure
This structure is passed by the developer through the SCCVW_GETOPTION or SCCVW_SETOPTION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize
VTDWORD dwId;
VTDWORD dwFlags;
VTVOID pData;
} SCCVWOPTIONSPEC40;
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.2
SCCVW_GETPROPERTY
This message returns any file property information generated by the input filter.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.4
Return Value
One of the following values:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.6
SCCVWGETPROP Structure
This structure is passed by the developer through the SCCVW_GETPROPERTY message.
Structure
A C data structure defined in sccvw.h, as follows:
typedef struct SCCVWGETPROPtag
{
VTDWORD dwSize;
VTDWORD dwPropId;
VTLPVOID pName;
VTDWORD dwNameSize;
VTLPVOID pData;
VTDWORD dwDataSize;
VTDWORD dwDataType;
} SCCVWGETRAWTEXT50;
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.7
Comments
All strings (Property names, as well as property value for this version) are Unicode. If pName or pData are NULL, the dwNameSize and dwDataSize members will be filled with required buffer size to hold the indicated property.
SCCVW_GETRAWTEXT
- This message allows the parent to get the raw text buffer which contains the character identified by its actual character count (ACC) from the beginning of the document. The buffer of text returned is of variable size.
Parameters
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.8
Return Value
One of the following values:
-
SCCVW_EVENTSINGLECLICK: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the icon is clicked.
-
SCCVW_EVENTDOUBLECLICK: If set, parent window will receive an SCCCVW_ANNOTATIONEVENT when the icon is double-clicked.
-
SCCVW_EVENTTRANSITIONINTO: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions into the icon.
-
SCCVW_EVENTTRANSITIONOUTOF: If set, parent window will receive an SCCVW_ANNOTATIONEVENT when the cursor transitions out of the icon.9
Comments
To produce offsets used in SCCVW_ADDANNOTATION, use the SCCVWGETRAWTEXT50 structure as follows:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.00
Platform
Windows
SCCVWGETRAWTEXT50 Structure
This structure is passed by the OEM through the SCCVW_GETRAWTEXT message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwOptions;
VTDWORD dwACC;
VTHANDLE hText;
VTDWORD dwCharCount;
VTDWORD dwCharSet;
VTDWORD dwTextBufSize;
VTDWORD dwTextOffset;
} SCCVWGETRAWTEXT50;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.01
SCCVW_GETTREECOUNT
- This message allows the parent to get the number of nodes in an archive file. A node is defined as either a folder or a file. Node 0 is the root node for the archive, and contains the other nodes.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.02
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.03
Platform
Windows
SCCVW_GETTREENODE
- This message allows the parent to get information regarding a node such as the name or size of the node. A node is defined as either a folder or a file. Node 0 is the root node for the archive, and contains the other nodes.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.04
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.05
Platform
Windows
Comments
A node can be either a folder, or an archived file. For archives that store path information, the path is broken down into separate nodes. Node zero is always a folder that contains the contents of the archive file.
SCCDATREENODE Structure
This structure is passed by the OEM through the SCCVW_GETTREENODE message.
Structure
A C data structure defined in sccda as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwNode;
VTTCHAR szName[1024];
VTDWORD dwFileSize;
VTDWORD dwTime;
VTDWORD dwFlags;
VTDWORD dwCharSet;
} SCCDATREENODE, *PSCCDATREENODE;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.06
SCCVW_GOTOANNOTATION
- This message allows the parent to move the view/selection from annotation to annotation.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.08
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.13
Platform
Windows
SCCVW_HILITESTYLE
- This message allows the parent to define a formatting style for highlighted text. The style identifier can be used in conjunction with SCCVW_ADDANNOTATION.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.14
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.15
Platform
Windows
SCCVWHILITESTYLE41 Structure
This structure is passed by the OEM through the SCCVW_HILITESTYLE message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwStyleId;
VTDWORD dwOptions;
SCCVWCOLORREF sForeground;
SCCVWCOLORREF sBackground;
VTWORD wCharAttr;
} SCCVWHILITESTYLE41;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.16
SCCVWHILITESTYLE81 Structure
This structure is passed by the OEM through the SCCVW_HILITESTYLE message.
Structure
A C data structure defined in sccvw as follows:
typedef struct SCCANNOHILITESTYLE81tag
{
VTDWORD dwSize;
VTDWORD dwStyleId;
VTDWORD dwOptions;
SCCVWCOLORREF sForeground;
SCCVWCOLORREF sBackground;
VTWORD wCharAttr;
VTWORD wCharAttrMask;
SCCVWCOLORREF sUnderline;
} SCCVWHILITESTYLE81, * PSCCVWHILITESTYLE81;
The behavior of most of the fields is identical with their behavior in the SCCVWHILITESTYLE41 data structure. The only differences are as follows:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.18
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.19
SCCVW_HSCROLL
- This message allows the OEM to cause horizontal scrolling behavior.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.22
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.24
Platform
Windows,
SCCVW_IDLE
- This message should be sent repeatedly by the developer to the viewer during the viewing process. This message allows the viewer to blink the cursor and read ahead in the file being viewed. Under Windows, this message is only necessary if the developer has set the SCCVW_SYSTEM_NOTIMER message in the SCCID_SYSTEMFLAGS option.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.25
Platform
Windows
SCCVW_INFOMESSAGE
-
- This message is sent to the developer during processing of the document. Each message indicates that the Viewer has identified a situation that it knows it is unable to correctly render. As re-rendering a page may cause the view window to reprocess the cause of a message, these messages should not be considered unique instances of a problem.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.26
Platform
Windows
SCCVW_INITDRAWPAGE
- This message initializes the page drawing routines. This message must be called before any calls to SCCVW_DRAWPAGE.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.28
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.29
Platform
Windows
SCCVW_KEYDOWN
-
- This message is sent to the developer when the view window receives a key press notification from the operating system. This allows the developer to define their own function for any key.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.30
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.31
Platform
Windows
SCCVW_MAPPOSITION
- This message allows the parent to map between a position and an actual character count.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.32
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.33
Platform
Windows
SCCVWMAPPOSITION41 Structure
This structure is passed by the OEM through the SCCVW_MAPPOSITION message.
Structure
A C data structure defined in sccvw as follows.
typedef struct
{
VTDWORD dwSize;
VTDWORD dwMapOptions;
SCCVWPOS sPos;
VTDWORD dwACC;
} SCCVWMAPPOSITION41;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.34
SCCVW_MAPPROB
-
- This message informs the OEM that the page of a PDF file being read contains a font or fonts that are more likely to contain unmappable or incorrectly mapped characters.
The following fonts have non-standard encodings and do not have ToUnicode mappings. When used by PDF, they are considered standard:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.36
Fonts with encodings not on this list will trigger this message if they do not have ToUnicode mappings.
This message will be sent once per page. Multiple non-standard fonts in a single page will not trigger repeated messages, but the use of a font across multiple pages will trigger one message for each such page.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.37
Return Value
None
SCCVW_MAPTREEPOSITION
- This message allows the parent to map between a position and an archive node numbers. The values can be used with the SCCVW_GETREENODE, SCCVW_FINDPOSITION and SCCVW_SETSELECTION messages.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.38
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.39
Platform
Windows
SCCVWMAPTREEPOSITION82 Structure
This structure is passed by the OEM through the SCCVW_MAPTREEPOSITION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwMapOptions;
SCCVWPOS sPos;
VTDWORD dwNode;
VTDWORD dwRecordNum;
} SCCVWMAPTREEPOSITION82;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.40
SCCVW_OPTIONCHANGE
-
- This message is sent to the developer whenever an option has been changed. It can be used to monitor the current state of options.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.42
Platform
Windows
SCCVW_PRINT
- Causes the viewer to print the file currently being viewed.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.43
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.44
Comment
This call implements the entire printing process, including setup, option and printer selection dialogs. These dialogs give the user control over the full range of printing functionality available in this technology. If the developer needs more control over the printing process, the SCCVW_PRINTEX message should be used.
Platform
Windows
SCCVW_PRINTEX
- Causes the viewer to print the file currently being viewed based on information provided by the developer in the SCCVWPRINTEX structure.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.45
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.46
Platforms
Windows
SCCVWPRINTEX40 Structure
This structure is used by the SCCVW_PRINTEX messages to print a file.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwFlags;
HWND hParentWnd;
HDC hPrinterDC;
VTTCHAR szPrinter[128];
VTTCHAR szPort[128];
VTTCHAR szDriver[128];
VTBOOL bPrintSelectionOnly;
VTBOOL bDoSetupDialog;
VTBOOL bDoAbortDialog;
VTBOOL bPrintHeader;
VTBOOL bStartDocAlreadyDone;
VTTCHAR szJobName[40];
VTDWORD dwTopMargin;
VTDWORD dwBottomMargin;
VTDWORD dwLeftMargin;
VTDWORD dwRightMargin;
VTTCHAR szDefaultFont[32];
VTWORD wDefaultFontSize;
FARPROC pAbortProc;
VTBOOL bCollate;
VTDWORD dwCopies;
VTHANDLE hDevMode;
} SCCVWPRINTEX40;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.47
SCCVW_PRINTSETUP
- Brings up a platform dependent dialog that allows the user to pick from various platform-printing options.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.49
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.50
Comment
The dialog allows the user to pick from the printers on the system. Additionally, Windows users can change their printer’s settings.
Platform
Windows
SCCVW_RAWTEXTEVENT
-
- This message is sent repeatedly to the developer during the initial read of a document. Each message identifies the 0-based offset of the next block of raw text available from the technology. The last RawTextEvent contains a text offset of ‐1 to indicate it is done extracting text from the file. SCCVW_GETRAWTEXT can be used to retrieve the text buffer.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.51
Platform
Windows
SCCVW_READAHEADDONE
-
- Signals that the chunker is done reading the document. This means that the Oracle Outside In Viewer has completely read to the end of the document. This doesn’t mean that rendering is done. It may also be necessary for the Oracle Outside In Viewer to access the file again while the user scrolls through the document.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.52
Platform
Windows
SCCVW_SAVEOPTIONS
- Causes the view window to save its current options in the default option set. Generally this happens automatically when the window is destroyed, but if the developer disables this default behavior by setting the SCCVW_SYSTEM_NOOPTIONSSAVE flag in the SCCID_SYSTEMFLAGS option, this message may be used to manually save the current options.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.53
Platform
Windows
SCCVW_SAVETREENODE
- This message instructs the viewer to save a given tree node from an archive file to a new file.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.54
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.55
Platform
Windows
Comments
A node can be either a folder, or a file. If a file is saved, just that file will be saved. If a node is saved, it will save all the contents of that node as well. Saving node zero will save the entire contents of the archive file.
SCCVWSAVENODE Structure
This structure is passed by the OEM through the SCCVW_SAVETREENODE message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwNode;
VTDWORD dwFlags;
VTTCHAR szPath[256];
VTTCHAR szName[256];
} SCCVWSAVENODE;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.56
SCCVW_SEARCH
- Causes the view window to scan the document for a text string.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.57
Return Value
One of the following:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.58
Platform
Windows
SCCVWSEARCHINFO40 and SCCVWSEARCHINFO80 Structures
These structures are used by the SCCVW_SEARCH and SCCVW_SEARCHDIALOG messages to specify what to search for in a file. Note that while both of these structures can accept Unicode, only the SCCVWSEARCHINFO80 structure is truly intended to accept Unicode.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTTCHAR siText[80];
VTWORD siTextLen;
VTWORD siType;
VTWORD siFrom;
VTWORD siDirection;
} SCCVWSEARCHINFO40;
typedef struct
{
VTDWORD dwSize;
VTWORD siText[80];
VTWORD siTextLen;
VTWORD siType;
VTWORD siFrom;
VTWORD siDirection;
} SCCVWSEARCHINFO80;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.59
SCCVW_SEARCHDIALOG
- Causes the view window to display a search dialog.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.63
Return Value
One of the following:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.64
Comments
The search dialog is initialized to the values in SCCVWSEARCHINFO40 or SCCVWSEARCHINFO80 passed in lParam. If the user clicks OK, the search is executed and the SCCVWSEARCHINFO40 or SCCVWSEARCHINFO80 passed in lParam is set to the values the user entered.
Platform
Windows
SCCVW_SEARCHNEXT
- Causes the view window to scan the file for the same text string specified in a previous SCCVW_SEARCH or SCCVW_SEARCHDIALOG message.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.65
Return Value
One of the following:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.67
Platform
Windows
SCCVW_SELCHANGE
-
- This message is sent to the parent of the view window when the selection state has changed. The parent may then call SCCVW_GETCLIPINFO to determine the view window’s readiness to copy to the clipboard.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.68
Return Value
none
Platform
Windows
SCCVW_SELECTALL
- Causes the viewer window to select all data in the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.69
Return Value
none
Platform
Windows
SCCVW_SETDISPLAYNAME
- This call sets the string used when a human readable form of the file name needs to be displayed (like in a dialog). This is useful if the file is a temporary copy of another file (like attachments in mail programs).
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.70
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.71
Platform
Windows
SCCVW_SETHSCROLLPAGESIZE
-
- This message is sent from the view window when the page size (thumb size) of the horizontal scroll bar changes. It allows the OEM to establish correct thumb sizes of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.72
Platform
Windows
SCCVW_SETHSCROLLPOSITION
-
- This message is sent from the view window when the position of the horizontal scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.73
Platform
Windows
SCCVW_SETHSCROLLRANGE
-
- This message is sent from the view window when the range of the horizontal scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.74
Platform
Windows
SCCVW_SETHSCROLLSTATE
-
- This message is sent from the view window when the state of the horizontal scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.75
Platform
Windows
SCCVW_SETIDLEBITMAP
- Sets the bitmap to be centered in the view window when no file is being viewed.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.77
Return Value
None.
Platforms
Windows
SCCVW_SETMENUMAX
- This message informs the view window of the maximum value of the developer’s menu IDs. This allows the view window to use IDs above this value when creating menus or menu items for its menus. The default value if the message is not sent is #defined as SCCVW_DEFAULTMENUMAX.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.78
Platforms
Windows
SCCVW_SETOPTION
- This message allows the developer to set the current or default value of one of the many options available in the Viewer. The term option is a little misleading because some options act much more like properties or events in that they have an immediate impact on the display. In some cases they are very much like events in that they are only triggers for an operation (such as zooming in or out of a bitmap).
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.79
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.80
Comment
The current option is the value the view is using. The default option is the initial value which a new view will have.
Platform
Windows
SCCVWOPTIONSPEC40 Structure
This structure is passed by the developer through the SCCVW_GETOPTION or SCCVW_SETOPTION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize
VTDWORD dwId;
VTDWORD dwFlags;
VTVOID pData;
} SCCVWOPTIONSPEC40;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.81
SCCVW_SETSELECTION
- This message allows the parent to set the anchor and end of selection given two positions. Setting the caret position can be achieved by setting the anchor and end of selection to the same position.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.83
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.84
Platform
Windows
SCCVWSETSELECTION41 Structure
This structure is passed by the OEM through the SCCVW_SETSELECTION message.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
SCCVWPOS sAnchorPos;
SCCVWPOS sEndPos;
} SCCVWSETSELECTION41;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.85
SCCVW_SETVSCROLLPAGESIZE
-
- This message is sent from the view window when the page size (thumb size) of the vertical scroll bar changes. It allows the OEM to establish correct thumb sizes of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.86
Platform
Windows
SCCVW_SETVSCROLLPOSITION
-
- This message is sent from the view window when the position of the vertical scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.87
Platform
Windows
SCCVW_SETVSCROLLRANGEMIN
-
- This message is sent from the view window when the range of the vertical scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.88
Platform
Windows
SCCVW_SETVSCROLLRANGEMAX
-
- This message is sent from the view window when the range of the vertical scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.89
Platform
Window
SCCVW_SETVSCROLLSTATE
-
- This message is sent from the view window when the state of the vertical scroll bar changes. It allows the OEM to establish correct positioning of scroll bars external to the view window.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.90
Platform
Windows
SCCVW_VIEWAS
- This call instructs the viewer to display files identified as unknown in a specific format.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.92
Platform
Windows
SCCVW_VIEWFILE
- Causes the viewer to open and display the contents of a file. If another file is already open, it will be closed automatically. No intervening SCCVW_CLOSEFILE is necessary.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.93
Return Value
One of the following values:
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.94
Platforms
Windows
SCCVWVIEWFILE40 and SCCVWVIEWFILE80 Structures
These structures are used by the SCCVW_VIEWFILE and SCCVW_VIEWTHISFILE messages to pass the description of a file to view. Note that while both of these structures can accept Unicode, only the SCCVWVIEWFILE80 structure is truly intended to accept Unicode.
Structure
C data structures, defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
VTDWORD dwSpecType;
VTVOID * pSpec;
VTDWORD dwViewAs;
VTBOOL bUseDisplayName;
VTTCHAR szDisplayName[SCCVW_DISPLAYNAMEMAX];
VTBOOL bDeleteOnClose;
VTDWORD dwFlags;
VTDWORD dwReserved1;
VTDWORD dwReserved2;
} SCCVWVIEWFILE40, * PSCCVWVIEWFILE40;
typedef struct
{
VTDWORD dwSize;
VTDWORD dwSpecType;
VTVOID * pSpec;
VTDWORD dwViewAs;
VTBOOL bUseDisplayName;
VTWORD szDisplayName[SCCVW_DISPLAYNAMEMAX];
VTBOOL bDeleteOnClose;
VTDWORD dwFlags;
VTDWORD dwReserved1;
VTDWORD dwReserved2;
} SCCVWVIEWFILE80, * PSCCVWVIEWFILE80;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.95
SCCVW_VIEWTHISFILE
-
- This message is sent from the view window to the developer when another file should be viewed. Currently, this occurs is when the user double-clicks or hits return on a file entry in an Archive view and on a hyperlink to a referenced document. In the case of the archive formats, the display engine decompresses the file then sends a SCCVW_VIEWTHISFILE message to the developer. In the case of a hyperlink, if the annotation is not overridden by the developer, this message is generated. The parent can ignore this message or create a new view to view the decompressed file. The parent should use SCCVW_VIEWFILE to open the decompressed file.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.97
Return Value
Must be SCCVWERR_MESSAGEHANDLED if you have viewed the file. Any other return value indicates that you have no interest in the file and the view window should clean up if necessary. Clean up usually entails deleting the file if it is temporary.
Note:
The SCCVWVIEWFILE40 or SCCVWVIEWFILE80 structure inside the SCCVWVIEWTHISFILE40 or SCCVWVIEWTHISFILE80 structure contains a pointer to data (pSpec) that is only valid until you return from this message. The pSpec for a SCCVWVIEWTHISFILE40 or SCCVWVIEWTHISFILE80 structure copied into a local copy cannot be expected to still be valid at a later time
Do not send the SCCVW_VIEWFILE message to the same view window that sent you the SCCVW_VIEWTHISFILE message.
Platforms
Windows
SCCVWVIEWTHISFILE40 and SCCVEVIEWTHISFILE80 Structures
These structures are passed to the developer through the SCCVW_VIEWTHISFILE message. Note that while both of these structures can accept Unicode, only the SCCVWVIEWTHISFILE80 structure is truly intended to accept Unicode.
Structure
A C data structure defined in sccvw as follows:
typedef struct
{
VTDWORD dwSize;
SCCVWVIEWFILE40 sViewFile;
VTWORD wFileTime;
VTWORD wFileDate;
VTDWORD dwFileSize;
} SCCVWVIEWTHISFILE40;
typedef struct
{
VTDWORD dwSize;
SCCVWVIEWFILE80 sViewFile;
VTWORD wFileTime;
VTWORD wFileDate;
VTDWORD dwFileSize;
} SCCVWVIEWTHISFILE80;
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.98
SCCVW_VSCROLL
- This message allows the OEM to cause vertical scrolling behavior.
Parameters
-
SCCVW_HIDEPARABREAK: Removes a paragraph break. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
Note: This flag does not just cause the paragraph break to be whited out, but actually removes it from the view.
-
SCCVW_HIDETEXT: Removes an area of text. This may be useful if the document contains tags or information that is useful to your application but you do not want the user to see.
Note: This flag does not just cause the text to be whited out, but actually removes the text from the view.
-
SCCVW_HILITETEXT: Change the foreground and background color of an area of text.
-
SCCVW_INSERTBITMAP: Insert a bitmap between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTICON: Insert an icon between two characters. This value is only valid when viewing word processing documents.
Note: This flag is only supported on the Windows platform.
-
SCCVW_INSERTPARABREAK: Insert a paragraph break between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.
-
SCCVW_INSERTTEXT: Insert text between two characters. This value is only valid when viewing word processing, spreadsheet/database, or metafile documents.99
Return Value
One of the following values:
-
SCCVWERR_OK: The annotation was added successfully.
-
SCCVWERR_ALLOCFAILED: There is not enough memory to add the annotation.01