acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Thu Jul 12, 2018 5:33 pm Post subject: |
|
|
Eddie,
I'd agree you don't really want to be manually setting the ID for every button. I tend to only use the return code for basic Ok/Cancel/Yes/No buttons, with any other buttons on the window being handled by a callback. So assigning a few specific IDs for those buttons would allow you to add and remove buttons elsewhere (and use constants rather than magic numbers) without having to recode your end of dialog handling every time something changes. As you say, using some bigger numbers is the sensible way to go.
The return value problem was only with the recent beta dlls Paul has been generating, but everything in the garden looks rosy with his latest.
Alan |
|