hello ASm coders,

i want to change the font and the color of messagebox...
can anyone give some example?..






regards,
coredump
Posted on 2003-12-03 02:22:07 by coredump
The MessageBox is a standard Windows dialog and has no built in capacity for font and color except those that are set system wide in the Display Settings. You have to make your own application defined message box and process the WM_CTRLCOLORDLG message, the font can be applied by using the DS_SETFONT style for a DialogEx type dialog.
Posted on 2003-12-03 02:31:18 by donkey
hi donkey,

Good Day!

how to use WM_CTLCOLORMSGBOX ?
can you give some example?




regards,
coredump
Posted on 2003-12-03 20:49:45 by coredump
Posted on 2003-12-03 20:55:06 by donkey
hi donkey,

Thank you...:eek:






regards,
coredump
Posted on 2003-12-03 21:38:49 by coredump
coredump,
Ask and you shall receive. Here is a program from a book called Win32 Programming by Brent E. Rector and Joseph M. Newcomer. The program was written in C, so I MASMatized it. As you can see from the code, you have to do hooking. If you engage in this programming practice, you will be known as a hooker. If you have questions, I will be available today, but I will be gone for a week on starting Saturday. Ratch
Posted on 2003-12-05 03:40:26 by Ratch
hi Ratch,

I read you post today saturday.I will review and study the code..
Thank you..






regards,
coredump
Posted on 2003-12-05 18:52:33 by coredump
i have one example too, i think it can help you.
the code will tell u how use
WM_ERASEBKGND
WM_CTLCOLORSTATIC
WM_CTLCOLOREDIT
i think u must read win32.hlp too! very helpful
Posted on 2003-12-06 08:09:47 by benny
coredump,

Just got back from vacation. Any questions about the program example or method? Ratch
Posted on 2003-12-14 13:56:37 by Ratch
benny,

I don't know how to read your *.rar format. Could you post your attachment in ZIP format? Ratch
Posted on 2003-12-14 23:44:54 by Ratch
yes, of course! asm code was updated now :)
Posted on 2003-12-15 00:30:43 by benny