Page 1 of 1

Notepad's class name

Posted: Sat Mar 03, 2018 12:37 pm
by Dude
Is the class name for Notepad always "Notepad" in non-English versions of Windows? I need to find a Notepad window and don't want to rely on the title, as I know this will be different in different languages. This post appears to say yes:

https://social.msdn.microsoft.com/Forum ... ndow-class

Can I rely on that? Thanks. :)

BTW, reason for asking: I want to open a new Notepad window (not on disk) and put text in it. I have done this successfully using #WM_SETTEXT, but I'm worried about the class name being different and my code not working on a non-English PC.

Re: Notepad's class name

Posted: Sat Mar 03, 2018 1:28 pm
by Michael Vogel
Verified for different Windows Versions in german here, the app uses the class name "Notepad", the document window (it's first child) "Edit".

Re: Notepad's class name

Posted: Sat Mar 03, 2018 1:43 pm
by Dude
Thanks, Michael! :)