Fndo AutoRedraw: CreateWindowsEx

Iniciado por BlackZeroX, 15 Septiembre 2010, 03:47 AM

0 Miembros y 1 Visitante están viendo este tema.

BlackZeroX

.
Buenas alguien me podria decir que Constante hay que pasarle a CreateWindowsEx o con SetWindowLong al Handle de una Ventana X.

Dulces Lunas!¡.
The Dark Shadow is my passion.

LeandroA

Private Const WS_ACTIVECAPTION As Long = &H1
Private Const WS_BORDER As Long = &H800000
Private Const WS_CAPTION As Long = &HC00000
Private Const WS_CHILD As Long = &H40000000
Private Const WS_CHILDWINDOW As Long = (WS_CHILD)
Private Const WS_CLIPCHILDREN As Long = &H2000000
Private Const WS_CLIPSIBLINGS As Long = &H4000000
Private Const WS_DISABLED As Long = &H8000000
Private Const WS_DLGFRAME As Long = &H400000



Private Const WS_EX_ACCEPTFILES As Long = &H10&
Private Const WS_EX_APPWINDOW As Long = &H40000&
Private Const WS_EX_CLIENTEDGE As Long = &H200&
Private Const WS_EX_CONTEXTHELP As Long = &H400&
Private Const WS_EX_CONTROLPARENT As Long = &H10000&
Private Const WS_EX_DLGMODALFRAME As Long = &H1&
Private Const WS_EX_LAYERED As Long = &H80000
Private Const WS_EX_LAYOUTRTL As Long = &H400000&
Private Const WS_EX_LEFT As Long = &H0&
Private Const WS_EX_LEFTSCROLLBAR As Long = &H4000&
Private Const WS_EX_LTRREADING As Long = &H0&
Private Const WS_EX_MDICHILD As Long = &H40&
Private Const WS_EX_NOACTIVATE As Long = &H8000000&
Private Const WS_EX_NOINHERITLAYOUT As Long = &H100000&
Private Const WS_EX_NOPARENTNOTIFY As Long = &H4&
Private Const WS_EX_OVERLAPPEDWINDOW As Long = (WS_EX_WINDOWEDGE Or WS_EX_CLIENTEDGE)
Private Const WS_EX_PALETTEWINDOW As Long = (WS_EX_WINDOWEDGE Or WS_EX_TOOLWINDOW Or WS_EX_TOPMOST)
Private Const WS_EX_RIGHT As Long = &H1000&
Private Const WS_EX_RIGHTSCROLLBAR As Long = &H0&
Private Const WS_EX_RTLREADING As Long = &H2000&
Private Const WS_EX_STATICEDGE As Long = &H20000&
Private Const WS_EX_TOOLWINDOW As Long = &H80&
Private Const WS_EX_TOPMOST As Long = &H8&
Private Const WS_EX_TRANSPARENT As Long = &H20&
Private Const WS_EX_WINDOWEDGE As Long = &H100&


BlackZeroX

...

Gracias aun que me las sabia (WIN32API.txt), hay algunas que no seo ni lo que hacen por ello pregunte lo del Autoredraw, ya dare con ella ahorita me voy a festejar Xao

Dulces Lunas!¡.
The Dark Shadow is my passion.

Dessa

Adrian Desanti

LeandroA

uff entendi mal la pregunta no vi lo de Autoredraw, no no hay ninguna constante para eso, en vb lo que hace el auto redraw es crear un buffer (hdc) aparte entonces cuando pintias con alguna api ese hdc este es repintado sobre la ventana cuando le haces un refresh o cuando llega wm_paint.  osea que tendrias que subclasificar la ventana y pintar cuando vos lo requieras.

tambien fijate que te pude llegar a servir UpdateLayeredWindow,  si no me equivoco vos lo queres para hacer un fondo tipo Vista,

Saludos.

BlackZeroX

.
ya me lo imaginaba...

Dulces Lunas!¡.
The Dark Shadow is my passion.