3,977 questions
This seems to work: (HMENU)INT_PTR(ID_FIRSTCHILD + i).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I followed the guide on Creating, Enumerating, and Sizing Child Windows, but I'm getting a warning on this line of code:
(HMENU) (int) (ID_FIRSTCHILD + i),
warning C4312: 'type cast': conversion from 'int' to 'HMENU' of greater size
How do I fix this?
This seems to work: (HMENU)INT_PTR(ID_FIRSTCHILD + i).
Look up the #pragma warning disable feature.