HWND of app
-
Is there a way to get a windows HWND by way of the windows title, *if* you only know part of the title? Example... How can I get the HWND of internet explorer? I know the window title (normally) contains "Microsoft Internet Explorer". Look up at your title bar now, you'll see the web page title then "- Microsoft Internet Explorer". So, can I get the HWND with just "Internet Explorer"? ::FindWindow(NULL, "Internet Explorer"); <--- Don't work. Hope I explained my problem well enough! Thanks! Daniel
-
Is there a way to get a windows HWND by way of the windows title, *if* you only know part of the title? Example... How can I get the HWND of internet explorer? I know the window title (normally) contains "Microsoft Internet Explorer". Look up at your title bar now, you'll see the web page title then "- Microsoft Internet Explorer". So, can I get the HWND with just "Internet Explorer"? ::FindWindow(NULL, "Internet Explorer"); <--- Don't work. Hope I explained my problem well enough! Thanks! Daniel
a) FindWindow is evil on so many levels. Forget it b) try to find well-defined application-specific ways to find windows first. The Shell interfaces might contain something for explorer. c) Use EnumWindows to enumerate all windows. Ask their properties using SendMessageTimeout d) Never link your expectations about a window to the title. You think a Chinese Explorer has "Windows Explorer" there?
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen -
a) FindWindow is evil on so many levels. Forget it b) try to find well-defined application-specific ways to find windows first. The Shell interfaces might contain something for explorer. c) Use EnumWindows to enumerate all windows. Ask their properties using SendMessageTimeout d) Never link your expectations about a window to the title. You think a Chinese Explorer has "Windows Explorer" there?
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygenpeterchen wrote: You think a Chinese Explorer has "Windows Explorer" there? I got see what it is ? ;P
God is Real, unless declared Integer.
-
peterchen wrote: You think a Chinese Explorer has "Windows Explorer" there? I got see what it is ? ;P
God is Real, unless declared Integer.
Mr.Prakash wrote: peterchen wrote: You think a Chinese Explorer has "Windows Explorer" there? Chinese version Windows Explorer.[^] Maxwell Chen
-
Mr.Prakash wrote: peterchen wrote: You think a Chinese Explorer has "Windows Explorer" there? Chinese version Windows Explorer.[^] Maxwell Chen
What is that written in red ? "Folder"???
God is Real, unless declared Integer.
-
What is that written in red ? "Folder"???
God is Real, unless declared Integer.
The red words should read as "To open that folder (swf)". The image was found with Google, it is one of illustrations for some operation manual. That is Windows Explorer of Windows 98, on the title bar there is "Windows Explorer" in Chinese. I've had a look with my Windows Explorer of WinXP just now. It doesn't show something like "Windows Explorer - Temp" in the current version. Only "Temp" is shown while current folder opened is C:\Temp for example. Maxwell Chen
-
The red words should read as "To open that folder (swf)". The image was found with Google, it is one of illustrations for some operation manual. That is Windows Explorer of Windows 98, on the title bar there is "Windows Explorer" in Chinese. I've had a look with my Windows Explorer of WinXP just now. It doesn't show something like "Windows Explorer - Temp" in the current version. Only "Temp" is shown while current folder opened is C:\Temp for example. Maxwell Chen
I have developed namespace extension for my company, all these little difference in feature between winxp and win98 caused lot of design problems. :(
God is Real, unless declared Integer.