- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a programatic way to set the initial location of a console window created using AllocConsole() (or move it after creation)?
Also, is there a way to clear the console buffer?
TIA
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a programatic way to set the initial location of a console window created using AllocConsole() (or move it after creation)?
Also, is there a way to clear the console buffer?
TIA
Look in the language help index and you will find loads of Windows API console functions.
To move the console window, use SetConsoleWindowInfo to place the console window where you want it. It needs a console screen buffer handle as an argument.
To wipe the console window, create another console screen buffer using CreateConsoleScreenBuffer, save its handle.
Switch to the new (empty) buffer using SetConsoleActiveScreenBuffer.
Delete buffers that are no longer required using the CloseHandle function.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page