Skip to content

Commit

Permalink
Move Form.CaptionCcb back to where it was indicated in [MS-OFORMS] (F…
Browse files Browse the repository at this point in the history
…ixes #3)
  • Loading branch information
chelh committed Jan 31, 2017
1 parent 09944c7 commit 4b59758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VbaSyncLib/FrxObjects/FormControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ internal class FormControl {
MousePointer = PropMask.HasMousePointer ? r.ReadMousePointer() : MousePointer.Default;
ScrollBars = new FormScrollBarFlags(PropMask.HasScrollBars ? r.ReadByte() : (byte)0);
GroupCount = PropMask.HasGroupCount ? r.ReadInt32() : 0;
var captionCcb = PropMask.HasCaption ? r.ReadCcb() : Tuple.Create(0, false); // this seems to be in a different position than indicated in MS's spec?
// captionCcb is possibly here instead of where it's indicated in [MS-OFORMS]?
if (PropMask.HasFont) r.Skip2Bytes();
if (PropMask.HasMouseIcon) r.Skip2Bytes();
Cycle = PropMask.HasCycle ? r.ReadCycle() : Cycle.AllForms;
SpecialEffect = PropMask.HasSpecialEffect ? r.ReadSpecialEffect() : SpecialEffect.Flat;
BorderColor = PropMask.HasBorderColor ? r.ReadOleColor() : null;
var captionCcb = PropMask.HasCaption ? r.ReadCcb() : Tuple.Create(0, false);
if (PropMask.HasFont) r.Skip2Bytes();
if (PropMask.HasPicture) r.Skip2Bytes();
Zoom = PropMask.HasZoom ? r.ReadUInt32() : 0;
PictureAlignment = PropMask.HasPictureAlignment ? r.ReadPictureAlignment() : PictureAlignment.TopLeft;
Expand Down

0 comments on commit 4b59758

Please sign in to comment.