The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Tinieblaster on September 17, 2005, 08:35:32 PM

Title: WM_CTLCOLORMSGBOX
Post by: Tinieblaster on September 17, 2005, 08:35:32 PM
Hello  all, I need a little from help: because my code does not work? what is there badly? thank you.
It does not give color the MessageBox
.elseif eax==1005
mov eax,132h
.if eax==WM_CTLCOLORMSGBOX
invoke SetTextColor,wParam,0040FF00h
invoke SetBkColor,wParam,00000000h
invoke CreateSolidBrush,00000000h    
invoke MessageBox,hWin,offset text,offset tit,MB_ICONINFORMATION

Title: Re: WM_CTLCOLORMSGBOX
Post by: petezl on September 17, 2005, 09:23:52 PM
WM_CTLCOLORMSGBOX and WM_CTLCOLORBTN is discontinued!
There are a couple of ways around it but the easiest is to create your own msgbox with a dialog.

Peter.
Title: Re: WM_CTLCOLORMSGBOX
Post by: Tinieblaster on September 17, 2005, 09:29:06 PM
If you are right, I can use a Dialogue, But esque want to be able to give like color to a MessageBox Gracias. :'(