freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resizable ft2demos


From: Anuj Verma
Subject: Re: resizable ft2demos
Date: Fri, 22 May 2020 17:52:25 +0530

> Is that true? Handling WM_SIZING alone was not enough.

No, simply handling WM_SIZING or WM_SIZE is not enough in the current scenario.
There is a separate system message SC_SIZE under the WM_SYSCOMMAND
(https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand) which is
posted when the user tries to resize the window.

Currently the DefWindowProc handles the SC_SIZE command and it goes into a loop
while the window is being resized. So, you need to handle this message and resize the
window manually according to the mouse position.

I'll try to implement this and let you know.


Anuj

reply via email to

[Prev in Thread] Current Thread [Next in Thread]