Hi!
Anyone knows how can I retireve information in which screen mode console is (Window or Fullscreen Mode)?
Thanks!
Hi!
Anyone knows how can I retireve information in which screen mode console is (Window or Fullscreen Mode)?
Thanks!
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Retrieve information from what?
From the console or windows.
Look, I just want to know the screen mode of the current console program.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Screen mode? You mean the X and Y sizes? It's in the Console
App SDK of MSDN,
I think you can do this using Allegro or another API.
Check out on their website.
Allegro??? He's talking about a Console Application! AllegroOriginally posted by Vber
I think you can do this using Allegro or another API.
Check out on their website.
is a game programming library! Did i miss something?
No! I don't mean x and y sizes. I mean screen mode --->>>> FULLSCREEN or WINDOW.
When I run my console program I want that at the startup the program will check in which mode is it. If it is in a window mode then the program will "press" alt+enter and the program will be in fullscreen mode. I hope this is clear enough to understand.
Last edited by GaPe; 02-09-2003 at 12:28 PM.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Not just a programming library...
with library you have a lot of functions to workout with consoles and so on... and I think what he wants is there, he should try to search on their api...
Take it easy dude... I'm just trying to help.
I don't want to use Allegro library. It must be done with WINAPI.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
you could try this...get the current resolution and check it against the size of your window:
//width
int cx = GetSystemMetrics(SM_CXSCREEN);
// height
int cy = GetSystemMetrics(SM_CYSCREEN);
RECT rect = GetWindowRect(hConsole, &rect); //maybe try GetClientRect() here?
if(rect.right == cx && rect.bottom == cy)
//etc, etc, etc...