Give Us a Call: +1-877-99-BOPUP

MessageStruct type

Specifies or retrieves information on a single instant message.

Type MessageStruct     Key As String     Type As MessageType     Flags As MessageFlag     SenderName As String     SenderFirstName As String     SenderLastName As String     RecipientName As String     TypeName As String     MessageText As String     TextFont As String     TextSize As Long     TextStyle As TextStyle     TextColor As Long     OriginalDate As String End Type

Members

Key
Contains a unique message key. This member is filled if IServerClientVBA::SendMessage method returns a success result or when new incoming message is received via NewMessage notification that is sent in the form of NOTIFY_SERVER_MESSAGE message. This value can be used to identify each instant message in the application.
Type
Specifies a type of the instant message. This member can be one of the following values:
MessageType.MessageType_User
This instant message is personal message.
MessageType.MessageType_Group
This instant message is a group message.
MessageType.MessageType_News
This instant message is a new message. Messages with such type can be only incoming message from the IM server.
Flags
Array of bitwise flags that specify parameters of the message. This member can include one or more of the following values:
MessageFlag.MessageFlag_Urgent
Indicates high priority (urgent) message.
MessageFlag.MessageFlag_AsOffline
Indicates that the message has been forwarded the IM server and was stored as offline. This flag can be set only for incoming messages.
MessageFlag.MessageFlag_Confirmation
Indicates that the message requires recipient's confirmation.
SenderName
Contains the sender's account name. For outgoing messages this member must contain current user's account name.
SenderFirstName
Contains the sender's first name. This member is valid only for incoming personal and group messages.
SenderLastName
Contains the sender's last name. This member is valid only for incoming personal and group messages.
RecipientName
Contains the recipient's account name. This member is valid only for personal messages.
TypeName
Contains group or news name. This member is valid only for group and news messages.
MessageText
Contains a text of the instant message.
TextFont
Contains a font family to display the text message. Set this member to empty string ("" or Empty) or use MessageText_DefaultFont constant for outgoing messages if you want to use Arial font by default. Otherwise specify any other font name present in the system. For example, Tahoma, Verdana, Times New Roman and others.
TextSize
Contains a font size to display the text message. Set this member to MessageText_DefaultSize constant to use default (-13) font size.
TextStyle
Contains a style of the message font. This member can inclulde one or more of the following bitwise flags:
TextStyle.TextStyle_Bold
Indicates bold font.
TextStyle.TextStyle_StyleItalic
Indicates italic font.
TextColor
Contains a font color to display the text message. Set this member to MessageText_DefaultColor constant or 0 value to use default black font color (RGB(0, 0, 0)).
OriginalDate
Contains original date when the message was initially sent. The date is stored in the "MM/dd/YYYY 00:00:00" format where MM — month, dd — day and YYYY indicates year. This member is valid only for incoming messages when the Flags has the MessageFlag.MessageFlag_AsOffline flag.