unfortunately, it didn't work.
GetDlgCtrlID failed and returned 0. GetLastError also returned 0 after this.
How is this possible? The controls are created and visible on the page.