CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Westford, MA
    Posts
    1

    SetDialogBkColor without MFC

    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.


  2. #2
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: SetDialogBkColor without MFC

    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/
    [email protected]

  3. #3
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: SetDialogBkColor without MFC

    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/
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured