Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 332
  • Last Modified:

How to change the background color of a Formview?

Hi all,

I created an MDI view derived from formview.
But the default background color is greyish in color,
how do I change the background color of this formview
to say white?

thanks.
0
tots
Asked:
tots
1 Solution
 
galkinCommented:
Override PreCreateWindow for your class. register new class with AfxRegisterwndClass passing brush you want to be as background. Assign retured value to lpszClass field of CREATESTRUCT structure and call the base class implementation
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now