пРОЗРАЧНОСТЬ
Если нет то как?
Я искал, не нашёл.
typedef (__stdcall *SetLayeredWindowAttr)(HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);
HINSTANCE LibHandle = LoadLibrary("user32");
SetLayeredWindowAttr SetLayeredWindow;
SetLayeredWindow = (SetLayeredWindowAttr)GetProcAddress(LibHandle, "SetLayeredWindowAttributes");
SetWindowLong(MainForm->Handle, GWL_EXSTYLE, GetWindowLong(MainForm->Handle, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindow(MainForm->Handle, 0,/* например*/ 100, LWA_ALPHA);
Цитата:
Originally posted by xiOn
/* прозрачность */
typedef (__stdcall *SetLayeredWindowAttr)(HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);
HINSTANCE LibHandle = LoadLibrary("user32");
SetLayeredWindowAttr SetLayeredWindow;
SetLayeredWindow = (SetLayeredWindowAttr)GetProcAddress(LibHandle, "SetLayeredWindowAttributes");
SetWindowLong(MainForm->Handle, GWL_EXSTYLE, GetWindowLong(MainForm->Handle, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindow(MainForm->Handle, 0,/* например*/ 100, LWA_ALPHA);
/* прозрачность */
typedef (__stdcall *SetLayeredWindowAttr)(HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);
HINSTANCE LibHandle = LoadLibrary("user32");
SetLayeredWindowAttr SetLayeredWindow;
SetLayeredWindow = (SetLayeredWindowAttr)GetProcAddress(LibHandle, "SetLayeredWindowAttributes");
SetWindowLong(MainForm->Handle, GWL_EXSTYLE, GetWindowLong(MainForm->Handle, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindow(MainForm->Handle, 0,/* например*/ 100, LWA_ALPHA);
А у меня окно прозрачнеет, но форма почему-то отображается зеркально!!-)