Announcement

Collapse
No announcement yet.

SysHeader control HEIGHT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SysHeader control HEIGHT

    I would like to change the height of an existing SysHeader32 control.

    Should i use HDM_LAYOUT or something else?

    Thank you!
    Patrice Terrier
    www.zapsolution.com
    www.objreader.com
    Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

  • #2
    HDM_LAYOUT appears only to GET the current size...
    HDM_LAYOUT Message
    --------------------------------------------------------------------------------
    Retrieves the correct size and position of a header control within the parent window. You can send this message explicitly or use the Header_Layout macro.
    .. then again, when I looked for a better answer, I found this...
    Typically, you must set the size and position of a header control to fit within the boundaries of a particular rectangle, such as the client area of a window. By using the HDM_LAYOUT message, you can retrieve the appropriate size and position values from the header control.

    When sending HDM_LAYOUT, you specify the address of an HDLAYOUT structure that contains the coordinates of the rectangle that the header control is to occupy and provides a pointer to a WINDOWPOS structure. The control fills the WINDOWPOS structure with size and position values appropriate for positioning the control along the top of the specified rectangle. The height value is the sum of the heights of the control's horizontal borders and the average height of characters in the font currently selected into the control's device context.

    If you want to use HDM_LAYOUT to set the initial size and position of a header control, set the initial visibility state of the control so that it is hidden. After sending HDM_LAYOUT to retrieve the size and position values, you can use the SetWindowPos function to set the new size, position, and visibility state.
    You got me.

    MCM
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Michael,

      While SetWindowPos failed, the good old MoveWindow does it just fine.

      Thank you!

      ...
      Patrice Terrier
      www.zapsolution.com
      www.objreader.com
      Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

      Comment

      Working...
      X