// JP opened flex table

Click to See Complete Forum and Search --> : Widows


yesnathan22
November 13th, 2001, 04:48 AM
Dear Sir,
we are developing application for pocket pc.we need to diaplay the dialog as vertical(rotate 90 left).Even if we are chaning the xy coordinates,the text is displayed horizondaly.Is there any way to rotate the screen.Thank you.

Crius
November 13th, 2001, 03:20 PM
Just to venture a guess, you have the device context of the screen, right? Once you've rendered the screen (somehow), you can access the pixel values via the DC, and transfer the pixels line by line to another memory space, and then re-render to the DC (likely on the WM_PAINT message).

This is a bit slow, but it'll work. Another way that I haven't tried, but looks like it may work would be to reset the Viewport origin. It's a member function of CDC::SetViewportOrg().

If you have any problems, post a reply, and I'll see what I can do...

Crius
November 13th, 2001, 03:40 PM
ViewportOrg isn't what I thought it was. Anyways, once you've gotten the bitmap image of your dialog from the device context, Q186260 explains how to rotate it 90 degree, and then you can just bitblt it back in (bitblt can both get the image out of the device context and put it back in).

There's probably a better way, so hopefully someone else will answer this question with it. :)

//JP added flex table