PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

desktop rotate

I'm moving an application that I've been working on for pocket pc's to desktop pc's and this is my question:

In the ppc application I go back and forth between GDDISPMODE_ROTATE90CW and GDDISPMODE_NORMAL. On the desktop if I switch to GDDISPMODE_ROTATE90CW then my application turns sideways - which I understand is the correct behavior, but not what I'd like for the desktop. I'd like it to just change my window from 240x320 to 320x240. If I use MoveWindow(...) then I change the window dimensions, but then everything gets squished and stretched to fit those dimensions. Is there a way to get the sideways image displayed after doing a GDDISPMODE_ROTATE90CW and rotate it so that its displayed with the left side as the bottom and the coordinates work right still?

Does anyone have any suggestions on how to approach this?

Do I make sense?
No there is no way to do what you are saying. You can only change the dimensions of the window, which will change the resolution of the app, or you can zoom the app.
I don't understand what you are saying. Maybe I need to clarify:

In my WinMain function I set a GDAPPCONFIG variable - config, like so for regular display:

config.dwDisplayWidth = 240;
config.dwDisplayHeight = 320;
config.dwDisplayZoomWidth = 240;
config.dwDisplayZoomHeight = 320;

However, I'd like to simulate GDDISPMODE_ROTATE90CW display mode since if I actually rotate the screen on the desktop using GDDISPMODE_ROTATE90CW then I get a sidways application. So, I've messed with the above parameters and I can't seem to get it to work the way I want. If I set config.dwDisplayWidth or height less than the numbers they are at above then I just get nonsense. I've also tried setting the zoom stuff to NULL, but then if I change the dwDisplayWidth or height nothing happens.

Can anyone help?
Nevermind, I am very stupid.