VC++ 8 - Console application... Creating a hollow rectangle overlay on screen?

Discussion in 'Programming' started by Acecool, Jan 24, 2010.

  1. #1
    Hey, I have created an application to read pixels on the screen, and compare those pixels to another part of the screen..

    This was done using a console app.. I want to extend this a little bit...

    I want to create a HOLLOW (4 connected line drawing) rectangle overlay on the screen to show the user what is being processed at the moment...

    Graphics.h doesnt exist anymore apparently or I cant find it since the EDU site is down...

    Does anyone know a way to do this?
    x, y = top left
    width and height = how far to the right and down it goes from x, y
    DrawRectangle ( x, y, width, height)

    -Thanks
     
    Acecool, Jan 24, 2010 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't draw graphics in a console as it doesn't support raster graphics.
    You will have to create a window and then draw in that.
    See CreateWindow Function.
     
    NeoCambell, Jan 29, 2010 IP