#define _WIN32_WINNT 0x0500
#define WINVER 0x0500
#include
#include
#include
#include
int main(int argc, char **argv)
{
gtk_init(&argc, &argv);
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "Splitting Test");
Wolfman writes:
> Juhu got Alpha working :)
Cool!
> Have u an ICQ UIN?
Nope. I am usually in #gtk+ on irc.gimp.org.
--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Juhu got Alpha working :)
static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer
userdata)
{
cairo_t *cr = gdk_cairo_create(widget->window);
HWND hwnd = (HWND)gdk_win32_drawable_get_handle (widget->window);
SetWindowLong(hwnd, GWL_EXSTYLE,
Wolfman writes:
> 1.Do u know how to get the HWND(is there a way to get the HWND from
> HGDIOBJ?)
I don't know about HGDIOBJ, but you can get the HWND for a Gdk window
by including and using the function
gdk_win32_drawable_get_handle().
> Its looks quit easy under win32:
>
> // Set WS_EX_L
Good to know :)
1.Do u know how to get the HWND(is there a way to get the HWND from
HGDIOBJ?)
Its looks quit easy under win32:
// Set WS_EX_LAYERED on this window
SetWindowLong(hwnd, GWL_EXSTYLE,
GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
// Make this window 70% alpha
SetLayered
Wolfman writes:
> Is there a other way to make a window transparent? And why this
> doesnt work under WinXP?
Windows with alpha aren't implemented in gdk/win32. Patches
welcome. Look for "layered windows" in MSDN.
--tml
___
gtk-app-devel-list mailing
I use WinXP with GTK+ 2.8.18
This dont work the colormap is always null...
GdkScreen *screen = gtk_widget_get_screen(widget);
GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen);
Is there a other way to make a window transparent? And why this doesnt work
under WinXP?I know in *NIX u ne