Hi,
I wonder how can I move the command line window programatically from a Command Line project in visual studio c++?
is there any function or method like:
setWindowPosition(x,y);
??
thanks in advance
Hi,
I wonder how can I move the command line window programatically from a Command Line project in visual studio c++?
is there any function or method like:
setWindowPosition(x,y);
??
thanks in advance
Mac OS 10.6 Snow Leopard : Darwin
Almost, the api is SetWindowPos but you can wrap it up to make it look like that.
That's Windows only code. You'll have to take a look at something like pdcurses to do it portably, the function of interest there is mvwin().Code:#include <windows.h> void setWindowPosition(int x, int y) { SetWindowPos(GetConsoleWindow(), NULL, x, y, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOOWNERZORDER); }
bit∙hub [bit-huhb] n. A source and destination for information.