When I set my own classname, ":0" is added to the end of the classname.
e.g. pWindow.ClassName = "myWinclass"
The classname becomes "myWinclass:0"
I'm curious why.
/Mikael
Because there is other code, such the one that deals with tab pages, that create new instances of CWindow on the fly and will fail to register the class if the name of the class if already registered.
Hi Jose, I became curious when I noticed the below code in your include file.
IF LEN(strClassName) THEN szClassName = strClassName ELSE szClassName = "PBWindowClass"
szClassName = szClassName & ":" & FORMAT$(nCount)
I sometimes use FindWindow with classnames, I just have to remember to add the ":0" when using CWindow.
Thank you /Mikael