How to trigger a WM_NCCALCSIZE on resize ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Herve Bocuse

    How to trigger a WM_NCCALCSIZE on resize ?

    Hi,

    I use a WM_NCCALCSIZE handler in my custom control to set myself a non
    client border. It works fine at the creation of the control.

    But later I modify the size of the control with the Size property or with
    the SetBounds method and the WM_NCCALCSIZE message is not triggered, thus
    causing a problem in the size of the non client area.

    Any solution ?

    Thank you

    Herve


  • Herve Bocuse

    #2
    Re: How to trigger a WM_NCCALCSIZE on resize ?

    I'm sorry, I was in fact receiving the message correctly but I misunderstood
    the wParam meaning.

    Herve

    "Herve Bocuse" <gdiawara@gmail .com> wrote in message
    news:cpsm9p$vj$ 1@dns3.cae.ca.. .[color=blue]
    > Hi,
    >
    > I use a WM_NCCALCSIZE handler in my custom control to set myself a non
    > client border. It works fine at the creation of the control.
    >
    > But later I modify the size of the control with the Size property or with
    > the SetBounds method and the WM_NCCALCSIZE message is not triggered, thus
    > causing a problem in the size of the non client area.
    >
    > Any solution ?
    >
    > Thank you
    >
    > Herve
    >
    >[/color]


    Comment

    Working...