flat assembler
Message board for the users of flat assembler.
Index
> Windows > moving item |
Author |
|
wisepenguin 03 Sep 2006, 18:16
could you explain a bit more ?
sounds like you want MoveWindow ? |
|||
03 Sep 2006, 18:16 |
|
Kicer 03 Sep 2006, 19:54
i just don't know what message should i send.
i have a dialog and it's described in resource section and while resizing dialog's window i'd like to resize and move items also. |
|||
03 Sep 2006, 19:54 |
|
wisepenguin 03 Sep 2006, 20:26
when handling WM_SIZE
i WM_SIZE to statusbar with same wParam and lParam for others i use MoveWindow, like edit box, list box etc |
|||
03 Sep 2006, 20:26 |
|
peter 04 Sep 2006, 10:34
There is no message for this purpose; use MoveWindow and GetDlgItem.
MoveWindow(GetDlgItem(hDlg, ID_CONTROL), x, y, width, height, TRUE) |
|||
04 Sep 2006, 10:34 |
|
Reverend 10 Sep 2006, 13:21
Let's say a child window is 1/3 parent's width long. When the parent window receives a WM_SIZE message, you need to get LOWORD from lParam (which is equal to new width), and count 1/3 of it. Then Use MoveWindow or SetWindowPos on the child window.
The point is, you have to know the scale of child windows before. When whole window is static you just place buttons so that everything looks nice. But when it is dynamiccaly changinge when responding to WM_SIZE message, the proportions are needed. |
|||
10 Sep 2006, 13:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.