Thread: Community help project

  1. #1
    Caffienated jinx's Avatar
    Join Date
    Oct 2001
    Posts
    234

    Community help project

    I've been stewing over this thing for a while. I have to design this little app for public computers in my city (free of charge or pay for me) to account for some mandatory public service hours. Basically its a tool for handicapped peoples. I have a great text-to-speech (TTS) interface that I got from a kid on campus but I have hit my wall... how in the world do capture the screen size and invert the colors? It can't be that hard...
    Weeel, itss aboot tieme wee goo back too Canada, eeehy boyss.

  2. #2
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    To get the screen size just use the GetSystemMetrics() function. Sample code is below.


    Code:
    #define SCREENWIDTH GetSystemMetrics(SM_CXSCREEN)
    #define SCREENHEIGHT GetSystemMetrics(SM_CYSCREEN)
    
    //or
    
    int width, height;
    
    width  = GetSystemMetrics(SM_CXSCREEN);
    height = GetSystemMetrics(SM_CYSCREEN);

  3. #3
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    I just found this, which looks like it will do what you want with the colors
    http://msdn.microsoft.com/library/de...invertrect.asp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CBoard Community Project: Poll #1
    By brewbuck in forum Projects and Job Recruitment
    Replies: 148
    Last Post: 06-10-2009, 12:04 PM
  2. cboard community project
    By zacs7 in forum Projects and Job Recruitment
    Replies: 76
    Last Post: 05-16-2009, 08:30 PM
  3. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM