202 Posted Topics
Re: and if is a void type, you can't use 'return 0;'. because the void type don't return any value;) | |
Re: see these code: void SetWindowSize(COORD newsize) { _COORD coord; coord.X = newsize.Y+1; coord.Y = newsize.X+1; SMALL_RECT Rect; Rect.Top = 0; Rect.Left = 0; Rect.Bottom = newsize.Y; Rect.Right = newsize.X; HANDLE Handle = GetStdHandle(STD_OUTPUT_HANDLE); // Get Handle if(SetConsoleScreenBufferSize(Handle,coord)==FALSE) // Set Buffer Size DebugText("buffer size error!!!\t" + to_string(GetLastError())); SetConsoleWindowInfo(Handle, TRUE, &Rect); // … |
The End.