Thread: Centering onscreen output

  1. #1
    zach
    Guest

    Centering onscreen output

    Running under Windows, is there a way to center the output of a c-program on the display, by means of code in the application, like e.g. it can be done, from within a C# application?

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Console or Window Client Area?

    For Console, check for Win32 Console API: here

  3. #3
    zach
    Guest
    Quote Originally Posted by flp1969 View Post
    Console or Window Client Area?

    For Console, check for Win32 Console API: here
    The output of a c program on a Windows display is rectangular in form, and is positioned randomly; I would like to center the output on the display.

    The reference you have given me is very interesting and contains much useful information, for which many thanks. However I see no code that answers my query.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Centering a map, using GDI
    By vopo in forum Windows Programming
    Replies: 1
    Last Post: 10-18-2007, 02:48 AM
  2. 3DSM Animated Character Onscreen
    By IM! in forum C++ Programming
    Replies: 2
    Last Post: 06-22-2006, 02:01 PM
  3. Centering
    By caduardo21 in forum Windows Programming
    Replies: 4
    Last Post: 02-20-2005, 02:12 PM
  4. How can you extract what text is onscreen???
    By Pharoah in forum C++ Programming
    Replies: 1
    Last Post: 05-03-2003, 09:07 AM
  5. Centering text
    By Unregistered in forum C++ Programming
    Replies: 12
    Last Post: 10-04-2002, 11:58 PM

Tags for this Thread