Removed some uses of initialParent.

This commit is contained in:
Pietro Gagliardi 2015-05-14 22:33:19 -04:00
parent b891871c4e
commit b1e1fed484
2 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@ void uiWindowsMakeControl(uiControl *c, uiWindowsMakeControlParams *p)
0, 0,
// use a nonzero initial size just in case some control breaks with a zero initial size
100, 100,
initialParent, NULL, p->hInstance, p->lpParam);
utilWindow, NULL, p->hInstance, p->lpParam);
if (s->hwnd == NULL)
logLastError("error creating control in uiWindowsMakeControl()");
s->onWM_COMMAND = p->onWM_COMMAND;

View File

@ -115,7 +115,7 @@ BOOL handleParentMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LR
// bounce back to the control in question
// except if to the initial parent, in which case act as if the message was ignored
control = (HWND) lParam;
if (control != NULL && IsChild(initialParent, control) == 0) {
if (control != NULL && IsChild(utilWindow, control) == 0) {
*lResult = SendMessageW(control, msgCOMMAND, wParam, lParam);
return TRUE;
}
@ -123,7 +123,7 @@ BOOL handleParentMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LR
case WM_NOTIFY:
// same as WM_COMMAND
control = nm->hwndFrom;
if (control != NULL && IsChild(initialParent, control) == 0) {
if (control != NULL && IsChild(utilWindow, control) == 0) {
*lResult = SendMessageW(control, msgNOTIFY, wParam, lParam);
return TRUE;
}