Notepad's class name

Windows specific forum
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Notepad's class name

Post 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.
User avatar
Michael Vogel
Addict
Addict
Posts: 2666
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Notepad's class name

Post 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".
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Notepad's class name

Post by Dude »

Thanks, Michael! :)
Post Reply