Create member of dialog bar requires BarID. Once you pass different IDs for each bar and store it for comparison, dialog bar can make a decision what command to send when button is pressed (GetDlgCtrlID) for each bar from button handler within dialog bar class.
By handling buttons inside dialog bar class, framework buttons update UI is bypassed, therefore you will have to override OnUpdateCmdUI in dialog bar passing FALSE for bDisableIfNoHndler in call to the base class, to keep buttons enabled.
johncz
| Sun, 11 Nov 2007 01:05:00 GMT |