diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-09 15:30:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-09 15:30:24 -0400 |
| commit | 8d64f695e0c34d6801bc9422f7a56ddca7df5b81 (patch) | |
| tree | 5b9b3947ff2dd97ec44e030b13765703facf0b75 /new/container_windows.c | |
| parent | 8e0cd27605149f16141470ad49dd71e26598223e (diff) | |
Implemented the foundation for padding.
Diffstat (limited to 'new/container_windows.c')
| -rw-r--r-- | new/container_windows.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/new/container_windows.c b/new/container_windows.c index f4d00ba..8881c10 100644 --- a/new/container_windows.c +++ b/new/container_windows.c @@ -55,6 +55,10 @@ BOOL sharedWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT * return FALSE; } +// TODO get source +#define winXPadding 4 +#define winYPadding 4 + void resize(uiControl *control, HWND parent, RECT r, RECT margin) { uiSizing d; @@ -87,6 +91,8 @@ void resize(uiControl *control, HWND parent, RECT r, RECT margin) r.top += uiDlgUnitToY(margin.top, d.baseY); r.right -= uiDlgUnitToX(margin.right, d.baseX); r.bottom -= uiDlgUnitToY(margin.bottom, d.baseY); + d.xPadding = uiDlgUnitToX(winXPadding, d.baseX); + d.yPadding = uiDlgUnitToY(winYPadding, d.baseY); (*(control->resize))(control, r.left, r.top, r.right - r.left, r.bottom - r.top, &d); } |
