Site icon EfmSoft

What does Windows error code 1436 (ERROR_CHILD_WINDOW_MENU) mean?

 
Previous Next
ERROR_DESTROY_OBJECT_OF_OTHER_THREAD ERROR_NO_SYSTEM_MENU

ERROR_CHILD_WINDOW_MENU

Child windows do not own menus through the creation parameter

The hMenu parameter of CreateWindowEx is overloaded by window type. For overlapped or pop-up windows it identifies a menu. For a child window it specifies the child-window identifier used by the parent and dialog-style command routing.

Treating a child as if it had a top-level menu confuses those two contracts. The fix is not to cast the menu handle differently; the window hierarchy or the menu ownership design must change.

What to check

This is closely related to ERROR_TLW_WITH_WSCHILD, but here the specific conflict is menu semantics on a child window.

References


Looking for a different code? Search another status or error code.

Exit mobile version