Borderless?

A simple question, is it possible on a cmd to create a borderless or make right-upper buttons unavable? Tnx in advance.

EDIT: I just want to make a cmd window without the possibility to close it from right-upper buttons.
Last edited on
Well if you're currently running in a windows environment i.e. MS Windows, Linux, Unix derrivative etc... then the cmd window will be in it's own window. To do what you want to achieve you'll need to boot into DOS.
Ok then, one more thing, i see theres a command for resolution things,
1
2
3
4
HWND console = GetConsoleWindow();
RECT r;                                 //resolution things
GetWindowRect(console, &r);
MoveWindow(console, r.left, r.top, 800, 400, TRUE);


The MoveWindow(console, r.left, r.top, 800, 400, TRUE); "True" part, does it means if user can change the resolution by edge (in cmd state)? if i change it to "False" i can still change it, what those MoveWindow(console, r.left, r.top, 800, 400, TRUE); all means? i see'd it on other post and i used it and idk anything about it, do you have an link/info? thx in advance.
Well you could do this then:

1
2
3
4
5
6
7
#include <windows.h>

int main()
{
   ::SendMessage(::GetConsoleWindow(), WM_SYSKEYDOWN, VK_RETURN, 0x20000000);
   // rest of the code ...
}

Can you explain what that line do? ::SendMessage(::GetConsoleWindow(), WM_SYSKEYDOWN, VK_RETURN, 0x20000000);
Last edited on
It worked! THANKS a lot!
Topic archived. No new replies allowed.