I need to make my console application in a fixed size window & disable the maximize button. Can you give me any suggestions please?
I tried to do the following for setting the size, but its does not have any effect to the console window size, it does not work even though the code compiles...
My requirements in short are:Code:#include <iostream> #include <windows.h> using namespace std; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); int main() { SMALL_RECT windowSize = {0, 0, 100, 100}; SetConsoleWindowInfo(hConsole, TRUE, &windowSize); SetConsoleTitle(L"TEST"); cout<<"\nPlease press enter to exit"<<endl; cin.get(); return 0; }
1. Disable maximize button
2. Set fixed size for console window
3. Add an icon beside the title name
4. Change the font of the text in the screen
I program in C++ under windows Vista, if you can tell me the proper functions, this can help!
Thanks




Reply With Quote