Click to See Complete Forum and Search --> : SetDialogBkColor without MFC


James King
August 31st, 1999, 04:49 PM
I'm writing an Acrobat plug-in module (a DLL) and I need to use the standard DialogBox call for now to interact with the user. My DLL and the resulting installation has to be as small as possible, so I decided against MFC.

How in the world can I effectively do a SetDialogBkColor without MFC?

Kudos to anyone who can figure this one out.

I was able to use WM_PAINT in my DialogProc to paint the background white all the time, but all the controls are still drawn with a light gray background.

Thanks a million.

Rail Jon Rogut
August 31st, 1999, 05:03 PM
You'll need to add a handler for WM_CTLCOLORDLG for each of your dialog boxes, I believe.

Rail

------------
Recording Engineer/Software Developer
Rail Jon Rogut Software
http://home.earthlink.net/~railro/
railro@earthlink.net

Rail Jon Rogut
August 31st, 1999, 07:39 PM
BTW, I wrote a DLL Plug-in for an app, and I used MFC (linked statically)... the final DLL including resources was only 220 kBytes.

Rail

------------
Recording Engineer/Software Developer
Rail Jon Rogut Software
http://home.earthlink.net/~railro/
railro@earthlink.net