Clarion ClassNames eg ClaWin0400000H_1 and ClaWin0400000H_2

It appears that the number appended to the Classname eg ClaWin0400000H_1, ClaWin0400000H_2, ClaWin0400000H_3 and ClaWin0400000H_4 is the window open count.

Does anyone know if the Classname is the same throughout and is it an “Application Global Class” as described here About Window Classes - Win32 apps | Microsoft Learn

I’m assuming it is because I’m still seeing the Clarion triangle on the taskbar after changing the windows properties.

TIA

It is Richard,

We dynamically create different controls then map their class name to CJ control names to apply Visual Style files to the apps.

Regards,

Andy
noyantis com

1 Like

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.