Removed some uses of initialParent.
This commit is contained in:
parent
b891871c4e
commit
b1e1fed484
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue