Page 1 of 2

szWindowName doesn't actually correctly set the window name?

PostPosted: Sep 1, 2004 @ 7:09am
by muff
I've tried ripping apart all the window create stuff, and replaced with code from various sources, with differing degrees of success (some would name the app window correctly, but left me with an app that was overdrawn by the apps behind)

getting nowhere fast :(

any suggestions anyone?

(p.s the reason for wanting this to accurately set the name of the window is that I was trying to add a simple function to restore minimised app versions when the app is relaunched. something that is usually done with window names without any problems - hence finding that the window names were not working correctly)

PostPosted: Sep 1, 2004 @ 7:23am
by Kzinti

PostPosted: Sep 1, 2004 @ 9:15am
by muff

PostPosted: Sep 1, 2004 @ 4:34pm
by Kzinti

PostPosted: Sep 1, 2004 @ 5:29pm
by muff
when using the CEPVIEW remote process viewer to watch the processes running on smartphone or PPC, there is a column for the name of the window

atm games made with PocketFrog seem to give the window the name of FAKEIMEUI

on other apps I've made (without PF) the names show up correctly

and as it is these names that the search for duplicate windows is relying on, it's obviously important that they are correct



of course I could be being really dense, in which case, please feel free to point me in the right direciont :D

PostPosted: Sep 1, 2004 @ 6:04pm
by Kzinti
I don't have the code in front of me, but this is probably something ATL does. If you create the window yourself and specify a name to CreateWindowEx(), it should work.

Have you tried calling SetWindowText( hwnd, L"appname") after the window is created? Might be worth a try...

PostPosted: Sep 1, 2004 @ 9:24pm
by muff
hiya

yeah, I've tried messing with the CreateWindowEx method, and even ported the code from the pockethal examples in as a framework for setting up the windows (and several variants from other locations)

all with differing degrees of success - once the name showed up correctly, but the window was 'behind' the main application in term of focus, but not drawing :/

I'm sure it's possible, just need to play with it some more is all

once I get it working I'll be sure to let you know how ;)

thanks for the suggestions

muff

PostPosted: Sep 1, 2004 @ 9:56pm
by Kzinti
Well it works perfectly here. Are you using more then one window?

PostPosted: Sep 2, 2004 @ 1:08pm
by muff

PostPosted: Sep 2, 2004 @ 5:02pm
by fast_rx

PostPosted: Sep 2, 2004 @ 5:20pm
by Kzinti

PostPosted: Sep 2, 2004 @ 6:40pm
by fast_rx

PostPosted: Sep 2, 2004 @ 6:55pm
by Kzinti

PostPosted: Sep 4, 2004 @ 9:43pm
by fast_rx

PostPosted: Sep 13, 2004 @ 6:58am
by Kzinti