The windows name for static controls are setted in win32u defwnd.c procedure. In fact the set_Text function have a control about IS_INTRESOURCE to block assigning the name there.
However whne using MainWindowClass as class, when it hit this procedure the name is null. However it still return ?3 in the test.