This message was edited by stober at 2004-1-14 6:54:50
: : You have to manually set up the message map for these OnButtonClick events. The following code allocates 10 buttons and uses the same event handler for each (see RED below
: Thats neat using the "ON_CONTROL_RANGE" message map Stober. How do you tell which button was clicked in the OnButton1() function?
call GetFocus() to get HWND, then GetDlgCtrlID() to get the ID.