Originally posted by Andy Upton
View Post
Announcement
Collapse
No announcement yet.
DDT question about control IDs
Collapse
X
-
-
Unique to the dialog.
You can have the same control IDs as long as they are used on different dialogs.
Leave a comment:
-
DDT question about control IDs
Does the ID for a control have to be unique in the dialog, or in the program?
ie I would like to have similar 2 dialogs use the same group of control IDs, so I can use the same functions, and just pass and use the different dialog handle.
Alternative ideas are to use a single dialog and dynamically add / remove the controls that vary between them; or set up the ID equates so that I can refer to them by number and add pass a parameter to add an offset to the ID numbers depending which dialog the function was called from.
As always, many thanks in advance.Tags: None
Leave a comment: