none
[MS-EMF] Incorrect cross-reference in EMR_SETLAYOUTMODE RRS feed

  • General discussion

  • http://msdn.microsoft.com/en-us/library/cc204341.aspx states (in part):

    LayoutMode (4 bytes): A 32-bit unsigned integer that specifies a value in the Layout enumeration, specified in [MS-WMF] section 2.1.15.

    The layout specifies the order in which text and graphics are revealed in a window or a playback device context. The default is left to right. The EMR_SETLAYOUT record can change this to be right to left, which is the standard in some languages.


    Two issues:

    1. The reference is wrong - the Layout enumeration is in [MS-MWF] Section 2.1.1.13 (not 2.1.15, which doesn't exist). This affects the PDF version more than the online version.

    2.  The description implies that the layout defaults to LAYOUT_LTR, and can be set to LAYOUT_RTL. However there are three other values (LAYOUT_BTT = 0x00000002, LAYOUT_VBH = 0x00000004, and LAYOUT_BITMAPORIENTATIONPRESERVED = 0x00000008). Are those valid in an EMF file?

    Brad


    Sunday, October 12, 2008 8:05 AM

All replies

  • Hi Brad,

    Thanks for your post.

    We'll contact you once we have answers or questions.

    Regads,

    SEBASTIAN CANEVARI - MSFT SEE Protocol Documentation Team
    Sunday, October 12, 2008 1:11 PM
  •  
    Hi Brad,



    The links show up correctly in newer revisions of the document and will show corrected in the upcoming publications.



    With regards to question #2:



    Only LAYOUT_RTL, LAYOUT_LTR and LAYOUT_BITMAPORIENTATIONPRESERVED are meaningful, either in EMF or WMF files.

    The other two values (LAYOUT_BTT and LAYOUT_VBH) aren't used by Windows for any purpose.

    We will review these and make appropriate adjustments to the documentation.

     Windows doesn't validate the values passed for this enumeration. Unsupported values are simply ignored.





    I hope that this meets your needs.



    Thanks!


    SEBASTIAN CANEVARI - MSFT SEE Protocol Documentation Team
    Tuesday, October 21, 2008 3:09 PM
  • Sebastian,

    Thanks for chasing this down.

    Brad


    Tuesday, October 21, 2008 8:41 PM