[try Beta version]
Not logged in

 
 
Borderless?

Dec 29, 2016 at 2:34pm
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 Dec 29, 2016 at 2:38pm
Dec 29, 2016 at 2:47pm
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.
Dec 29, 2016 at 2:53pm
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.
Dec 29, 2016 at 3:23pm
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 ...
}

Dec 29, 2016 at 4:30pm
Can you explain what that line do? ::SendMessage(::GetConsoleWindow(), WM_SYSKEYDOWN, VK_RETURN, 0x20000000);
Last edited on Dec 29, 2016 at 5:12pm
Dec 29, 2016 at 5:37pm
It worked! THANKS a lot!
Topic archived. No new replies allowed.