From f829a06a7ca043629f4ac013b77719593286a017 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 22 Apr 2016 21:36:19 -0400 Subject: [PATCH] Migrated child.c. Ugh... --- windows/{child.c => child.cpp} | 2 +- windows/uipriv_windows_new.hpp | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) rename windows/{child.c => child.cpp} (99%) diff --git a/windows/child.c b/windows/child.cpp similarity index 99% rename from windows/child.c rename to windows/child.cpp index f126fd13..4a5e0c7f 100644 --- a/windows/child.c +++ b/windows/child.cpp @@ -1,5 +1,5 @@ // 28 august 2015 -#include "uipriv_windows.h" +#include "uipriv_windows.hpp" // This file contains helpers for managing child controls. diff --git a/windows/uipriv_windows_new.hpp b/windows/uipriv_windows_new.hpp index 20ffb0f3..a88d4e62 100644 --- a/windows/uipriv_windows_new.hpp +++ b/windows/uipriv_windows_new.hpp @@ -71,3 +71,27 @@ extern BOOL handleParentMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa // resize.cpp extern void doResizes(void); + + + +// TODO +// child.cpp +extern struct child *newChild(uiControl *child, uiControl *parent, HWND parentHWND); +extern struct child *newChildWithTabPage(uiControl *child, uiControl *parent, HWND parentHWND); +extern void childRemove(struct child *c); +extern void childDestroy(struct child *c); +extern HWND childHWND(struct child *c); +extern void childMinimumSize(struct child *c, uiWindowsSizing *d, intmax_t *width, intmax_t *height); +extern void childRelayout(struct child *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height); +extern void childQueueRelayout(struct child *c); +extern int childVisible(struct child *c); +extern void childUpdateState(struct child *c); +extern void childAssignControlIDZOrder(struct child *c, LONG_PTR *controlID, HWND *insertAfter); +extern void childSetSoleControlID(struct child *c); +extern HWND childTabPage(struct child *c); +extern int childMargined(struct child *c); +extern void childSetMargined(struct child *c, int margined); +extern int childFlag(struct child *c); +extern void childSetFlag(struct child *c, int flag); +extern intmax_t childIntmax(struct child *c, int n); +extern void childSetIntmax(struct child *c, int n, intmax_t to);