Ive posted this on another forum, and haven't gotten very far. I had a few skillful coders give it a go, and no luck.
We got errors...
I'm trying to make a console app... Transparent, or translucent. (See-through)
Ive tried:
#include <iostream>
#define _WIN32_WINNT 0x0500
#include <windows.h>
using namespace std;
int main()
{
HWND hWnd = GetConsoleWindow();
SetConsoleTitle("Test");
SetWindowLong(hWnd, GWL_EXSTYLE,
GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes(hWnd, 0, 50, LWA_ALPHA);
system("PAUSE");
return 0;
}
And got:
K:\Computers\C++ stuff\C++ Projects\Untitled1.cpp:21: Error 5
K:\Computers\C++ stuff\C++ Projects\Untitled1.cpp:23: Error 87
Any idea's as to if it's possible?
Thanks guys. :)
~BRADSZY~