Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-08-2008
Member
 
Join Date: Aug 2005
Posts: 82
How to Run a C Program in Full Screen

I hope if there is any code to change or trigger the Command Prompt to be in full screen mode? I searched it on many sites but coudnt find one. Hoping that there is an answer for it. Thank you
Reply With Quote
  #2  
Old 08-08-2008
Member
 
Join Date: Dec 2007
Posts: 2,273
After some googling I found it very easily. Take a look here.
Reply With Quote
  #3  
Old 08-08-2008
Member
 
Join Date: Dec 2007
Posts: 1,728
Do you google, found this another link.
Also on MSDN found this link
Reply With Quote
  #4  
Old 08-08-2008
Member
 
Join Date: Aug 2005
Posts: 82
It seems that the codes there are not supported in C.


Are you sure that this codes are supported in C? I doubt
Reply With Quote
  #5  
Old 08-08-2008
Member
 
Join Date: Dec 2007
Posts: 1,592
It is possible to use it in C code. You just have to include windows.h. Many times I have used Windows API in C applications, I hope that you can as well.
Reply With Quote
  #6  
Old 08-08-2008
Member
 
Join Date: Jun 2006
Posts: 620
Check this code for fullscreen.

Code:
include <windows.h>


void "whatevernameyouwanttogiveit"()/* function definition for 
                                                         fullscreen */
{  keybd_event(VK_MENU,
                0x38,
                0,
                0);
    keybd_event(VK_RETURN,
                0x1c,
                0,
                0);
    keybd_event(VK_RETURN,
                0x1c,
                KEYEVENTF_KEYUP,
                0);
    keybd_event(VK_MENU,
                0x38,
                KEYEVENTF_KEYUP,
                0);
}
Reply With Quote
  #7  
Old 08-08-2008
Member
 
Join Date: Aug 2005
Posts: 82
It is now working, thanks for all the help guys. Cheers
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Run a C Program in Full Screen"
Thread Thread Starter Forum Replies Last Post
Toshiba Satellite L505 display screen won?t enlarge to full screen TamburaA Portable Devices 6 10-05-2011 10:11 PM
Easy Debian screen not full screen in Nokia N900 after upgrading to 1.3 horuy Portable Devices 4 17-01-2011 03:07 PM
YouTube unable to open in full screen receiving black screen DON-a-Duck Technology & Internet 3 24-11-2010 11:57 PM
Block full internet access to a program Ishmael Windows Vista Network 4 23-11-2010 02:34 PM
Full Screen Games but no full screen on Windows Seven Puloma Monitor & Video Cards 6 11-09-2010 06:55 AM


All times are GMT +5.5. The time now is 10:23 AM.