Skip to content

Commit

Permalink
set console screen buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Phus Lu authored and Phus Lu committed Jun 30, 2016
1 parent 83d9b7d commit e667900
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
Binary file modified Release/goproxy-gui.exe
Binary file not shown.
Binary file modified taskbar.aps
Binary file not shown.
14 changes: 14 additions & 0 deletions taskbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,20 @@ BOOL CreateConsole()
return FALSE;
}

CONSOLE_SCREEN_BUFFER_INFO csbi;
if (GetConsoleScreenBufferInfo(GetStdHandle(STD_ERROR_HANDLE), &csbi))
{
COORD size = csbi.dwSize;
if (size.Y < 2048)
{
size.Y = 2048;
if (!SetConsoleScreenBufferSize(GetStdHandle(STD_ERROR_HANDLE), size))
{
printf("Unable to set console screen buffer size!\n");
}
}
}

return TRUE;
}

Expand Down
Binary file modified taskbar.ncb
Binary file not shown.
Binary file modified taskbar.opt
Binary file not shown.
11 changes: 0 additions & 11 deletions taskbar.plg
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,10 @@
</h3>
<h3>Command Lines</h3>
Creating command line "rc.exe /l 0x409 /fo"Release/taskbar.res" /d "NDEBUG" "D:\Develop\taskbar\taskbar.rc""
Creating temporary file "C:\Users\phuslu\AppData\Local\Temp\RSP3B1E.tmp" with contents
[
/nologo /MD /W3 /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /FR"Release/" /Fo"Release/" /Fd"Release/" /FD /c
"D:\Develop\taskbar\taskbar.cpp"
]
Creating command line "cl.exe @C:\Users\phuslu\AppData\Local\Temp\RSP3B1E.tmp"
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 "
<h3>Output Window</h3>
Compiling resources...
Compiling...
taskbar.cpp
Linking...
Creating command line "bscmake.exe /nologo /o"Release/taskbar.bsc" .\Release\taskbar.sbr"
Creating browse info file...
<h3>Output Window</h3>



Expand Down
2 changes: 1 addition & 1 deletion taskbar.rc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_CMDLINE "goproxy.exe -v=2"
IDS_ENVIRONMENT "TASKBAR_VISIBLE=0\nTASKBAR_TOOLTIP=GoProxy\nTASKBAR_TITLE=GoProxy Notify\nTASKBAR_BALLOON=GoAgent �Ѿ���������������ͼ�������С����\n"
IDS_ENVIRONMENT "TASKBAR_VISIBLE=0\nTASKBAR_TOOLTIP=GoProxy\nTASKBAR_TITLE=GoProxy Notify\nTASKBAR_BALLOON=GoProxy �Ѿ���������������ͼ�������С����\n"
IDS_PROXYLIST "http://127.0.0.1:8087/proxy.pac\n127.0.0.1:8087\n"
IDS_RASPBK "%APPDATA%\\Microsoft\\Network\\Connections\\Pbk\n%ALLUSERSPROFILE%\\Microsoft\\Network\\Connections\\Pbk\n%ALLUSERSPROFILE%\\Application Data\\Microsoft\\Network\\Connections\\Pbk\\rasphone.pbk\n"
END
Expand Down

0 comments on commit e667900

Please sign in to comment.