Autor
|
Tema: Color de fondo,no coinicde! (Leído 3,564 veces)
|
Riki_89D
Desconectado
Mensajes: 851
BCN CITY
|
Hola como estan? bueno miren esta imagen: fijense el fondo s blanco pero el control static en donde pone programa para palmyra es como mas gris,intente con esto: invoke GetDC,handle_del_static invoke SetBkColor,eax,COLOR_WINDOW
pero nada no cambia,como puedo ponerlos del mismo color? salu2
|
|
« Última modificación: 23 Abril 2010, 21:40 pm por Riki_89D »
|
En línea
|
|
|
|
MCKSys Argentina
|
Y con SendMessage? EM_SETBKGNDCOLOR The EM_SETBKGNDCOLOR message sets the background color for a rich edit control.
EM_SETBKGNDCOLOR wParam = (WPARAM) (BOOL) fUseSysColor; lParam = (LPARAM) (COLORREF) clr; Parameters fUseSysColor Value specifying whether to use the system color. If this parameter is nonzero, the background is set to the window background system color. Otherwise, the background is set to the specified color. clr COLORREF structure specifying the color if fUseSysColor is zero. Return Values Returns the old background color.
Seria algo así: invoke GetDC,handle_del_static invoke SendMessage,eax,EM_SETBKGNDCOLOR,1,0
wParam es 1, por lo que se usa el color por defecto del sistema. Si usas un 0 en wParam, en lParam le deberás pasar el color que quieres, de acuerdo a: COLORREF The COLORREF value is a 32-bit value used to specify an RGB color.
Remarks When specifying an explicit RGB color, the COLORREF value has the following hexadecimal form:
0x00bbggrr The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue. The high-order byte must be zero. The maximum value for a single byte is 0xFF.
Saludos!
|
|
|
En línea
|
MCKSys Argentina "Si piensas que algo está bien sólo porque todo el mundo lo cree, no estás pensando."
|
|
|
Riki_89D
Desconectado
Mensajes: 851
BCN CITY
|
Pues ya esta solucionado ^^ para quien le interese solo habia que procesar el mensaje WM_CTLCOLORSTATIC i despues configurar con: invoke SetBkMode,HDC,TRANSPARENT
y listo fuera fondo feo! xD salu2
|
|
|
En línea
|
|
|
|
|
Mensajes similares |
|
Asunto |
Iniciado por |
Respuestas |
Vistas |
Último mensaje |
|
|
[Java ME/J2ME] Color de fondo de pantalla
Java
|
avmiitxe
|
2
|
7,134
|
20 Julio 2011, 20:29 pm
por o__Near__o
|
|
|
Cambiar fondo al añadir class a un div (background-color)
Desarrollo Web
|
Servia
|
4
|
6,625
|
9 Julio 2011, 13:39 pm
por Servia
|
|
|
Cambiar fondo y color de la tez en fotos con photoshop
Diseño Gráfico
|
Constance
|
2
|
3,829
|
17 Mayo 2012, 13:53 pm
por Constance
|
|
|
Igualar color de figura al color de fondo progresivamente.
Programación General
|
ignorantev1.1
|
2
|
2,189
|
25 Noviembre 2016, 04:30 am
por ignorantev1.1
|
|
|
Diferente color para aristas y fondo de un polygon dentro de un panel
Java
|
SDCC
|
1
|
1,746
|
26 Noviembre 2018, 01:25 am
por SDCC
|
|