09-11-2018, 05:29 AM
I wonder whether there exists a way to simplify - shorten the following statement :
case [EN_SETFOCUS<<16|71,EN_SETFOCUS<<16|72,EN_SETFOCUS<<16|73,EN_SETFOCUS<<16|74,EN_SETFOCUS<<16|75,EN_SETFOCUS<<16|76,EN_SETFOCUS<<16|77,EN_SETFOCUS<<16|78,EN_SETFOCUS<<16|79, EN_SETFOCUS<<16|80,EN_SETFOCUS<<16|81,EN_SETFOCUS<<16|82,EN_SETFOCUS<<16|83,EN_SETFOCUS<<16|84,EN_SETFOCUS<<16|85,EN_SETFOCUS<<16|86,EN_SETFOCUS<<16|87,EN_SETFOCUS<<16|88,EN_SETFOCUS<<16|89,EN_SETFOCUS<<16|90,EN_SETFOCUS<<16|121,EN_SETFOCUS<<16|122,EN_SETFOCUS<<16|123,EN_SETFOCUS<<16|161,EN_SETFOCUS<<16|162,EN_SETFOCUS<<16|163]
Many thanks in advance.
case [EN_SETFOCUS<<16|71,EN_SETFOCUS<<16|72,EN_SETFOCUS<<16|73,EN_SETFOCUS<<16|74,EN_SETFOCUS<<16|75,EN_SETFOCUS<<16|76,EN_SETFOCUS<<16|77,EN_SETFOCUS<<16|78,EN_SETFOCUS<<16|79, EN_SETFOCUS<<16|80,EN_SETFOCUS<<16|81,EN_SETFOCUS<<16|82,EN_SETFOCUS<<16|83,EN_SETFOCUS<<16|84,EN_SETFOCUS<<16|85,EN_SETFOCUS<<16|86,EN_SETFOCUS<<16|87,EN_SETFOCUS<<16|88,EN_SETFOCUS<<16|89,EN_SETFOCUS<<16|90,EN_SETFOCUS<<16|121,EN_SETFOCUS<<16|122,EN_SETFOCUS<<16|123,EN_SETFOCUS<<16|161,EN_SETFOCUS<<16|162,EN_SETFOCUS<<16|163]
Many thanks in advance.