Chicken or Egg
What should come first?
On a relatively average type of dialog callback function
we want to catch user actions on controls,
text boxes, comboboxes, listviews, and buttons.
I'm confused what is the 'right' structure and why
in order to keep all actions within one structure.
Message first and then ID
or
ID first and then Message
What should come first?
On a relatively average type of dialog callback function
we want to catch user actions on controls,
text boxes, comboboxes, listviews, and buttons.
I'm confused what is the 'right' structure and why
in order to keep all actions within one structure.
Message first and then ID
or
ID first and then Message
Code:
CALLBACK FUNCTION xxxCallBack() SELECT CASE AS LONG CB.MSG 'windows message CASE %WM_NOTIFY SELECT CASE CB.CTL 'control ID CASE %LVW_SYSLISTVIEW32 'do something CASE %WM_COMMAND SELECT CASE CB.CTL 'control ID CASE %LVW_SYSLISTVIEW32 IF CB.MSG = %WM_NOTIFY 'do somethibg
Comment