Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to calculate screen size?

How to calculate screen size?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Supra2
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • S Supra2

      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

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • S Stuart Dootson

        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.

        S Offline
        S Offline
        Supra2
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • S Supra2

          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

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups