Answer the question
In order to leave comments, you need to log in
Scaling child elements of a Windows window?
How to make that when the window is resized, its child elements (buttons, windows, etc.) would change proportionally. Most likely, this is some property of the main application window itself, but what is it? Couldn't find an answer on google. On MSDN too.
Source code:
pastebin.com/1ZujQKrA
Before scaling:
After scaling:
Answer the question
In order to leave comments, you need to log in
C++ is not Delphi, there will be no freebies. You need to handle the WM_SIZE message yourself in MainWndProc . With the parameters, everything is simple (link) and then - with handles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question