2.9.161 OcxInfo

The OcxInfo structure specifies an OLE control (such as a checkbox, radio button, and so on) in the document. The data that is contained in OcxInfo structures SHOULD<228> be ignored.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

dwCookie

ifld

hAccel

cAccel

A

B

C

D

E

F

G

H

reserved1

idoc

reserved2

dwCookie (4 bytes):  An integer value that specifies the index location of this OcxInfo in the RgxOcxInfo array. This value MUST be unique for all OcxInfo structures in the document.

ifld (4 bytes):  An unsigned integer value that specifies an index location in the Plcfld structure. The value MUST be a valid FLD index in the correct Plcfld structure.

The Plcfld that is used is dependent on the value of idoc, as specified following.

Value

Location

1

The Main Document (FibRgFcLcb97.fcPlcfFldMom).

2

The Header Document (FibRgFcLcb97.fcPlcfFldHdr).

3

The Footnote Document (FibRgFcLcb97.fcPlcfFldFtn).

4

The Textbox Document (FibRgFcLcb97.fcPlcfFldTxbx).

6

The Endnote Document (FibRgFcLcb97.fcPlcfFldEdn).

7

The Comment Document (FibRgFcLcb97.fcPlcfFldAtn).

8

The Header Textbox Document (FibRgFcLcb97.fcPlcfHdrtxbxTxt).

hAccel (4 bytes):  This value is undefined and MUST be ignored.

cAccel (2 bytes):  An unsigned integer that specifies the number of entries in the accelerator key table of this control.

A - fifld (1 bit):  This field MUST have a value of 1.

B - fEatsReturn (1 bit):  Specifies whether this control is a sink for the ENTER key.

C - fEatsEscape (1 bit):  Specifies whether this control is a sink for the ESC key.

D - fDefaultButton (1 bit):  Specifies whether this control is the default button. 

E - fCancelButton (1 bit):  Specifies whether this control is the default CANCEL button.

F - fFailedLoad (1 bit):  Specifies whether an error occurred during the loading of this control. A value of 1 specifies that this control MUST be ignored.

G - fRTL (1 bit):  Specifies whether this control has special display handling for right-to-left languages.

H - fCorrupt (1 bit):  Specifies whether this control is corrupted. A value of 1 specifies that this control MUST be ignored.

reserved1 (8 bits): Undefined and MUST be ignored.

idoc (2 bytes):  An integer that specifies where ifld can be found. The value MUST be one of the following.

Value

Location

1

The Main Document.

2

The Header Document.

3

The Footnote Document.

4

The Textbox Document.

6

The Endnote Document.

7

The Comment Document.

8

The Header Textbox Document.

reserved2 (2 bytes): Undefined and MUST be ignored.