How to calculate screen size?
-
Hi I want to draw jpeg files in SDI application but when i am trying to resize the window I want the sane image to be drawn based on the size but i dont know how to do it with VC++. Pls suggest. Thanks
Presuming you're using BitBlt to draw the image in the window, you could use StretchBlt instead, as that will resize the image on redraw.
-
Presuming you're using BitBlt to draw the image in the window, you could use StretchBlt instead, as that will resize the image on redraw.
-
Thanks for your reply but can u tell me will it work as same as that of Solitaire game. When i am resizing this game screen all the cards gets resized based on the main window with the proper space between them. Thanks
Well - Solitaire doesn't redraw by blitting an image. It redraws the cards individually, based on the size of the window. To get that sort of behaviour, that's what you need to do.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p