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

screen coordinate problem in EasyCE


Re: screen coordinate problem in EasyCE

Postby LLcooL » Dec 13, 2001 @ 1:23pm

The problem you are talking about I have see when<br>I was developing the palettize code for EasyCE.<br><br>If the PPC was turned off with EasyCE running then on the logical palettize becomes off of context and EasyCE would display the image using the default palette. I got round this by calling<br>RealizePalette() each time the display is updated.
LLcooL
pm Member
 
Posts: 19
Joined: Nov 7, 2001 @ 11:23am


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 13, 2001 @ 4:19pm

LLcooL, I don't think you guys are talking about the same thing. :) What you ought to do is just call RealizePalette when you app gets activation, instead of every frame.<br><br>sillycat, if you (or EasyCE) captures the mouse (SetCapture), then you need to release / recapture appropriately in the WM_ACTIVATE handler.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby sillycat » Dec 13, 2001 @ 8:43pm

Dan is corrrect. LLcool you've mistaken my question :)<br><br>thanks to both of you. i'll try that out later.<br>
i'm a cat, i type on four feet.
sillycat
pm Member
 
Posts: 14
Joined: Dec 11, 2001 @ 11:29pm


Re: screen coordinate problem in EasyCE

Postby Phantom » Dec 14, 2001 @ 4:28am

Hm, I should have captured the mouse? :) Why?
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 14, 2001 @ 10:25am

Well, since your app is fullscreen its not really necessary. I have to capture the mouse in DEXplor when the user drag / drops, because they can drag outside of my window.<br><br>It sounds like sillycat is not MoveWindow'ing his window to cover the whole screen when he gets WM_ACTIVATE. I also don't think he should be getting an activation message in the first place if a popup window he doesn't own is still covering his window.<br><br>DanEast
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby sillycat » Dec 18, 2001 @ 10:12pm

the taskbar() function is moving the windows to cover fullscreen.<br><br>and for the popup, it is not covering my window, my window covers it but yet my window seems not able to capture mouse events at that particular area where the popup is....<br><br>
i'm a cat, i type on four feet.
sillycat
pm Member
 
Posts: 14
Joined: Dec 11, 2001 @ 11:29pm


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 18, 2001 @ 11:27pm

I just took a look at the 1.5 source. In the "taskbar" function Jacco finds the system taskbar, gets its dimensions, gets the dimensions of your main window, then resizes the window's rect based on the taskbar size. I use a much simpler approach that should work for all cases. I simply explicitly size my main window to the size of the display. I also have not needed to manually hide the taskbar window. This is all I do when I gain activation:<br>[fixed]<br>SHFullScreen(hWnd, SHFS_HIDETASKBAR);<br>MoveWindow(hWnd, 0, 0, GetSystemMetrics(SM_CXSCREEN),<br>  GetSystemMetrics(SM_CYSCREEN), TRUE);[/fixed]<br><br>hWnd is of course the handle to your main window.<br><br>Dan East<br><br>[sub][color=blue]Last modification: Dan East - 12/18/01 at 20:27:51
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby Phantom » Dec 19, 2001 @ 4:36pm

Dan,<br><br>If I use your code to hide my taskbar, I get problems: When I click the first couple of lines, I get windows stuff flickering through my app... When I change back to my original lines, the problem is gone.<br><br>- Jacco.
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 19, 2001 @ 6:27pm

Hmm. I use that in PQ, PWolf, and other software that takes over the display, and it works fine. I noticed in your WM_ACTIVATE handler you are not handling all cases of activation. There is one inactivate code (WA_INACTIVE), but multiple activation. So if LOWORD(wParam)!=WM_INACTIVE then your window is being activated.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby Phantom » Dec 20, 2001 @ 4:03am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: screen coordinate problem in EasyCE

Postby Phantom » Dec 20, 2001 @ 9:53am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 20, 2001 @ 10:16am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby Phantom » Dec 20, 2001 @ 12:11pm

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: screen coordinate problem in EasyCE

Postby Dan East » Dec 20, 2001 @ 1:35pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: screen coordinate problem in EasyCE

Postby sillycat » Dec 21, 2001 @ 10:16pm

i'm a cat, i type on four feet.
sillycat
pm Member
 
Posts: 14
Joined: Dec 11, 2001 @ 11:29pm


PreviousNext

Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

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