K
K
krka922019-05-29 16:23:15
Delphi
krka92, 2019-05-29 16:23:15

How to determine the source of window resizing?

I have a component that inherits from TWInControl. In it, I write a window resize handler:

procedure WMSIZE(var Message: TWMSIZE); message WM_SIZE;

I can change the size of the window:
1. With the mouse
2. By changing the size properties directly in the code.
I need to find out exactly how I changed the size if WMSIZE is called in both options.
Has anyone come across or have any ideas? I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2019-05-29
@krka92

Probably, my young friend, you can, by calling the WMSIZE event in your code, also cock some kind of flag, and reset it in your handler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question