This site is no longer active and is available for archival purposes only. Registration and login is disabled.

szWindowName doesn't actually correctly set the window name?


szWindowName doesn't actually correctly set the window name?

Postby muff » Sep 1, 2004 @ 7:09am

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)
muff
 


Postby Kzinti » Sep 1, 2004 @ 7:23am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby muff » Sep 1, 2004 @ 9:15am

muff
 


Postby Kzinti » Sep 1, 2004 @ 4:34pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby muff » Sep 1, 2004 @ 5:29pm

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
muff
 


Postby Kzinti » Sep 1, 2004 @ 6:04pm

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...
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby muff » Sep 1, 2004 @ 9:24pm

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
muff
 


Postby Kzinti » Sep 1, 2004 @ 9:56pm

Well it works perfectly here. Are you using more then one window?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby muff » Sep 2, 2004 @ 1:08pm

muff
 


Postby fast_rx » Sep 2, 2004 @ 5:02pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 2, 2004 @ 5:20pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 2, 2004 @ 6:40pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 2, 2004 @ 6:55pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Sep 4, 2004 @ 9:43pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Sep 13, 2004 @ 6:58am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum