DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: background and text colors with C++

  1. #1
    James Guest

    background and text colors with C++


    how can i get color for both text and background ive got one code that will
    change the background OR foreground color only. when you have it change the
    background color it only changes it in between the text. AND a code to where
    i can change the color of the text half way throught a document I.E. a
    blue HELLO and a RED world type of thing. Thanx

  2. #2
    Assaf Lavie Guest

    Re: background and text colors with C++

    There's no standard way of doing it in C++. For Windows console apps you can
    use Console functions:
    http://msdn.microsoft.com/library/de...k/winbase/conc
    har_2tid.htm

    --
    Assaf Lavie


    "James" <digitalcrash0@intelbrief.com> wrote in message
    news:3aaacb38$1@news.devx.com...
    >
    > how can i get color for both text and background ive got one code that

    will
    > change the background OR foreground color only. when you have it change

    the
    > background color it only changes it in between the text. AND a code to

    where
    > i can change the color of the text half way throught a document I.E. a
    > blue HELLO and a RED world type of thing. Thanx




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center