Skip to content

Commit e667900

Browse files
phusluPhus Lu
authored andcommitted
set console screen buffer size
1 parent 83d9b7d commit e667900

7 files changed

Lines changed: 15 additions & 12 deletions

File tree

Release/goproxy-gui.exe

0 Bytes
Binary file not shown.

taskbar.aps

0 Bytes
Binary file not shown.

taskbar.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,20 @@ BOOL CreateConsole()
440440
return FALSE;
441441
}
442442

443+
CONSOLE_SCREEN_BUFFER_INFO csbi;
444+
if (GetConsoleScreenBufferInfo(GetStdHandle(STD_ERROR_HANDLE), &csbi))
445+
{
446+
COORD size = csbi.dwSize;
447+
if (size.Y < 2048)
448+
{
449+
size.Y = 2048;
450+
if (!SetConsoleScreenBufferSize(GetStdHandle(STD_ERROR_HANDLE), size))
451+
{
452+
printf("Unable to set console screen buffer size!\n");
453+
}
454+
}
455+
}
456+
443457
return TRUE;
444458
}
445459

taskbar.ncb

0 Bytes
Binary file not shown.

taskbar.opt

0 Bytes
Binary file not shown.

taskbar.plg

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,10 @@
77
</h3>
88
<h3>Command Lines</h3>
99
Creating command line "rc.exe /l 0x409 /fo"Release/taskbar.res" /d "NDEBUG" "D:\Develop\taskbar\taskbar.rc""
10-
Creating temporary file "C:\Users\phuslu\AppData\Local\Temp\RSP3B1E.tmp" with contents
11-
[
12-
/nologo /MD /W3 /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /FR"Release/" /Fo"Release/" /Fd"Release/" /FD /c
13-
"D:\Develop\taskbar\taskbar.cpp"
14-
]
15-
Creating command line "cl.exe @C:\Users\phuslu\AppData\Local\Temp\RSP3B1E.tmp"
1610
Creating command line "link.exe kernel32.lib user32.lib /nologo /subsystem:windows /pdb:none /machine:I386 /out:"Release/goproxy-gui.exe" .\Release\taskbar.obj .\Release\taskbar.res "
1711
<h3>Output Window</h3>
1812
Compiling resources...
19-
Compiling...
20-
taskbar.cpp
2113
Linking...
22-
Creating command line "bscmake.exe /nologo /o"Release/taskbar.bsc" .\Release\taskbar.sbr"
23-
Creating browse info file...
24-
<h3>Output Window</h3>
2514

2615

2716

taskbar.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ END
129129
STRINGTABLE DISCARDABLE
130130
BEGIN
131131
IDS_CMDLINE "goproxy.exe -v=2"
132-
IDS_ENVIRONMENT "TASKBAR_VISIBLE=0\nTASKBAR_TOOLTIP=GoProxy\nTASKBAR_TITLE=GoProxy Notify\nTASKBAR_BALLOON=GoAgent �Ѿ���������������ͼ�������С����\n"
132+
IDS_ENVIRONMENT "TASKBAR_VISIBLE=0\nTASKBAR_TOOLTIP=GoProxy\nTASKBAR_TITLE=GoProxy Notify\nTASKBAR_BALLOON=GoProxy �Ѿ���������������ͼ�������С����\n"
133133
IDS_PROXYLIST "http://127.0.0.1:8087/proxy.pac\n127.0.0.1:8087\n"
134134
IDS_RASPBK "%APPDATA%\\Microsoft\\Network\\Connections\\Pbk\n%ALLUSERSPROFILE%\\Microsoft\\Network\\Connections\\Pbk\n%ALLUSERSPROFILE%\\Application Data\\Microsoft\\Network\\Connections\\Pbk\\rasphone.pbk\n"
135135
END

0 commit comments

Comments
 (0)