News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Dynamic Layout

Started by Biterider, January 13, 2020, 08:42:02 AM

Previous topic - Next topic

Biterider

Hi HSE
They are proportions. The values are given in percent (0-100%). The first 2 for the position and the last 2 for the size.
Since I imitate the MFC behavior, we can look at their documentation, e.g. https://mariusbancila.ro/blog/2015/07/27/dynamic-dialog-layout-for-mfc-in-visual-c-2015/.

Biterider

HSE

Quote from: Biterider on May 21, 2020, 06:47:06 AM
They are proportions.
No. This is a difference:
mov xcx, lParam
    movsx eax, cx                                       ;eax = new client x size
    sub eax, [xdx].DL_HEADER.IniSize.x
    .if SIGN?
      xor eax, eax
    .endif
    mov MCWI.dDeltaX, eax


Perhaps that work in a dialog, and must be placed in dialog.inc. (I don't make dialogs  :biggrin:)

Anyway the idea it's very good  :thumbsup:
Equations in Assembly: SmplMath

Biterider

Hi
I have improved the gripper management a little.  :biggrin:
Previously, the gripper was displayed when the higher-level window was maximized. Now it is hidden and all gripper actions are deactivated automatically.

Another small improvement is that child window placement is skipped when the parent window is minimized.

These changes affect the windows.inc file that is in the attachment.

Regards, Biterider