from VB6, i build these code for transparent:
void Transparent()
{
SetWindowLong( hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes (hwnd, clrBackColor, 0, LWA_COLORKEY);
const char *text;
text=to_string( GetLastError()).c_str();
MessageBox(NULL,text,"erro",MB_OK);
}
but i get 1 error from messagebox:
87:ERROR_INVALID_PARAMETER - The parameter is incorrect.
can anyone advice me?