It appears that the number appended to the Classname eg ClaWin0400000H_1, ClaWin0400000H_2, ClaWin0400000H_3 and ClaWin0400000H_4 is the window open count.
So it seems to stem from cla_pfield and then other classnames include ClaSheet_0400000H, ClaToolTip_0400000H, ClaGroup_0400000H, ClaEdit_0400000H, ClaPrompt_0400000H, ClaCheck_0400000H,ClaButton_0400000H, ClaTab_0400000H.
Not all the controls, but the cla_pfield seems to come from the Atom table.
I’m just exploring whether its possible to unregister the underlying Class and register a replacement, knowing the ATOM will change.
I dont know if the runtime is relying on the Atom or not. It doesnt look like it, it looks like its relying on the cla_pfield but I suspect what you are doing for CodeJock is creating a new top-level window and mirroring the original content. The HWND stays the same, but the class is different.
I’m seeing if I can replace the class and the runtime not balk.
So far there’s no small icon in the ClaWin… class info, so the Alt-Tab has the right icon, but the Taskbar button has the wrong icon.
Supposedly SendMessage Icon_Big and Icon_Small should handle both, but its not updating, so “changing” the class by replacing it might be a work around.
Its interesting to not that C6 is using common controls from the Side by Side folder, which is not the latest.