In Windows, for each and every control like (for every dialog, window, textbox and checkbox etc) a control id will be given.
How is this control id created? Can two applications in Windows can have same control ids? Is there any way to manually set Windows control ids?
The control ID is one of the parameters passed to the
CreateWindowfunction. If the control was created from a dialog template, then the dialog manager gets the control ID from the dialog template. It is quite common for two controls to have the same ID. For example, mostCancelbuttons will have the control IDIDCANCEL.