summaryrefslogtreecommitdiff
path: root/newctrl/container_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 14:09:11 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 14:09:11 -0400
commita1f9dca68cb3597bb76cd57a0504b6cd620cdce8 (patch)
treef205c1a52c4645ea535d9e83f7a183906ac6cbb5 /newctrl/container_windows.c
parent6cefa04d71d80db0dcd5f7daed17e17cb02c688b (diff)
Storing the *container in the Windows GWLP_USERDATA is no longer needed; strip it.
Diffstat (limited to 'newctrl/container_windows.c')
-rw-r--r--newctrl/container_windows.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/newctrl/container_windows.c b/newctrl/container_windows.c
index ea0a2f7..50ebc1e 100644
--- a/newctrl/container_windows.c
+++ b/newctrl/container_windows.c
@@ -13,13 +13,8 @@ If this is seriously an issue in the future, I can roll it back.
static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
- void *data;
- RECT r;
LRESULT lResult;
- data = getWindowData(hwnd, uMsg, wParam, lParam, &lResult);
- if (data == NULL)
- return lResult;
if (sharedWndProc(hwnd, uMsg, wParam, lParam, &lResult))
return lResult;
switch (uMsg) {
@@ -48,7 +43,7 @@ DWORD makeContainerWindowClass(char **errmsg)
return 0;
}
-HWND newContainer(void *data)
+HWND newContainer(void)
{
HWND hwnd;
@@ -58,7 +53,7 @@ HWND newContainer(void *data)
WS_CHILD | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT,
100, 100,
- msgwin, NULL, hInstance, data);
+ msgwin, NULL, hInstance, NULL);
if (hwnd == NULL)
xpanic("container creation failed", GetLastError());
return hwnd;