It does work, to begin with. But I'm pretty unsure if what I made is common practice. Therefore this question.
My dialog has a number of button controls that have one task in common: they do change parts of the GUI. Apart from that, each of them has an own, smaller objective. Therefore I created a nested SELECT CASE under WM_COMMAND in the dialog's CALLBACK function, where the inner set processes the same controls, albeit one by one. Let's say the button ID's are 1001 through 1004, then this might be the pseudo-code:
My dialog has a number of button controls that have one task in common: they do change parts of the GUI. Apart from that, each of them has an own, smaller objective. Therefore I created a nested SELECT CASE under WM_COMMAND in the dialog's CALLBACK function, where the inner set processes the same controls, albeit one by one. Let's say the button ID's are 1001 through 1004, then this might be the pseudo-code:
Code:
SELECT CASE AS LONG CBCTL CASE 1001 TO 1004 SELECT CASE AS LONG CBCTL CASE 1001 ' do the typical 1001 job CASE 1002 ' do the typical 1002 job CASE 1003 ' ... CASE 1004 ' ... END SELECT ' now do the common 1001-1004 job END SELECT
Comment