The Doszip Commander version 2.50 available (Announce)
>
> The few full-screen console Win32 applications that I wrote don't care
> about pixels or fonts - and they work fine when launched by "full-sized"
> FM.
Well, FM is setting the "full-sized" window then
> All they use is the CONSOLE_SCREEN_BUFFER_INFO.dwMaximumWindowSize
> member.
That is the same as .dwSize:
main proc c
local ci:CONSOLE_SCREEN_BUFFER_INFO
.if GetConsoleScreenBufferInfo(hStdOutput,addr ci)
mov eax,ci.dwSize
movzx ecx,ax
shr eax,16
dec eax
invoke printf,"COLS:\t%d\nROWS:\t%d\n",ecx,eax
mov eax,ci.dwMaximumWindowSize
movzx ecx,ax
shr eax,16
dec eax
invoke printf,"MaximumWindowSize:\n COLS:\t%d\n ROWS:\t%d\n",ecx,eax
invoke getch
.endif
sub eax,eax
ret
main endp
Executed from Windows:
COLS: 80
ROWS: 24
MaximumWindowSize:
COLS: 80
ROWS: 24
Executed from Doszip in a large-size window:
COLS: 140
ROWS: 48
MaximumWindowSize:
COLS: 140
ROWS: 48
The GetLargestConsoleWindowSize function returns the size of the largest possible console window,
based on the current font and the size of the display.
COORD GetLargestConsoleWindowSize(
HANDLE hConsoleOutput // handle to console screen buffer
);
The SetConsoleWindowInfo function sets the current size and position of a console screen buffer's window.
BOOL SetConsoleWindowInfo(
HANDLE hConsoleOutput, // handle to console screen buffer
BOOL bAbsolute, // coordinate type flag
CONST SMALL_RECT *lpConsoleWindow
// address of new window rectangle
);
I will do some testing...
Complete thread:
- The Doszip Commander version 2.50 available - nidud, 28.09.2013, 13:40 (Announce)
- The Doszip Commander version 2.50 available - Japheth, 28.09.2013, 20:56
- The Doszip Commander version 2.50 available - nidud, 28.09.2013, 21:36
- The Doszip Commander version 2.50 available - nidud, 28.09.2013, 22:09
- The Doszip Commander version 2.50 available - Japheth, 29.09.2013, 11:36
- The Doszip Commander version 2.50 available - nidud, 29.09.2013, 13:08
- The Doszip Commander version 2.50 available - Japheth, 29.09.2013, 19:51
- The Doszip Commander version 2.50 available - nidud, 29.09.2013, 21:07
- The Doszip Commander version 2.50 available - Japheth, 30.09.2013, 15:48
- The Doszip Commander version 2.50 available - nidud, 01.10.2013, 11:21
- The Doszip Commander version 2.50 available - Japheth, 02.10.2013, 08:26
- The Doszip Commander version 2.50 available - nidud, 02.10.2013, 09:44
- The Doszip Commander version 2.50 available - nidud, 02.10.2013, 10:33
- The Doszip Commander version 3.04 available - nidud, 02.10.2013, 20:44
- The Doszip Commander version 3.04 available - Japheth, 03.10.2013, 03:58
- The Doszip Commander version 3.04 available - nidud, 03.10.2013, 11:26
- The Doszip Commander version 3.05 available - nidud, 03.10.2013, 18:18
- The Doszip Commander version 3.05 available - Japheth, 04.10.2013, 06:46
- The Doszip Commander version 3.05 available - nidud, 04.10.2013, 09:15
- The Doszip Commander version 3.06 available - nidud, 04.10.2013, 22:26
- The Doszip Commander version 3.08 available - nidud, 09.10.2013, 12:39
- The Doszip Commander version 3.08 available - Rugxulo, 10.10.2013, 00:26
- The Doszip Commander version 3.08 available - nidud, 11.10.2013, 00:40
- The Doszip Commander version 3.08 available - Rugxulo, 10.10.2013, 00:26
- The Doszip Commander version 3.05 available - Japheth, 04.10.2013, 06:46
- The Doszip Commander version 3.04 available - Japheth, 03.10.2013, 03:58
- The Doszip Commander version 2.50 available - Japheth, 02.10.2013, 08:26
- The Doszip Commander version 2.50 available - nidud, 01.10.2013, 11:21
- The Doszip Commander version 2.50 available - Japheth, 30.09.2013, 15:48
- The Doszip Commander version 2.50 available - nidud, 29.09.2013, 21:07
- The Doszip Commander version 2.50 available - Japheth, 29.09.2013, 19:51
- The Doszip Commander version 2.50 available - nidud, 29.09.2013, 13:31
- The Doszip Commander version 2.50 available - nidud, 29.09.2013, 13:08
- The Doszip Commander version 2.50 available - nidud, 28.09.2013, 21:36
- The Doszip Commander version 2.50 available - Japheth, 28.09.2013, 20:56