How to trigger a WM_NCCALCSIZE on resize ?

H

Herve Bocuse

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
 
H

Herve Bocuse

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

Herve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top