CFormView Class with Custom Background Color
Posted
by Patty You
on October 1st, 2002
CColorFormView is derived from CFormView with custom background color.
How to use CColorFormView class in your project?
1)Derive your form view class from CColorFormView class. For example:class CMyFormView : public CColorFormView2)Change form view background color: You can specify background color in your form view's OnInitialUpdate():
void CMyFormViewView::OnInitialUpdate()
{
SetWindowText(_T("This is my formview"));
CColorFormView::OnInitialUpdate();
// set color to your form view
SetBackgroundColor(RGB(0, 128, 0));
// make the parent frame fit the form template
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}
I hope you enjoy this little class.

Comments
Jordan shoes mentioned Gene to go for the manufacturer, a disunion of Nike
Posted by TaddyGaffic on 04/24/2013 01:58pmWhere did that get us? A bunch of banks writing loans that they didnt care if poeple would be able to pay for because they were conforming [url=http://markwarren.org.uk/property-waet.cfm]nike air max 90[/url] loans and Fannie and Freddie would back them. And their $150+ billion losses show that they are just as unable to predict or control the market as the rest of us. It won't work because it doesn't reward investors for taking the risks involved. In order to set a good example of following your dreams, you may wish to consider strictly limiting, or eliminating TV from your life. When people are involved in pursuing their dreams they often find that they do not have the time to watch TV. TV just gets in the way of pursuing other dreams.. Take a limousine ride with Aerosmith on one of the fastest rollercoaster you have to face. Live shows throughout the day from Beauty and the Beast [url=http://markwarren.org.uk/property-waet.cfm]air max 90 uk[/url] will bring memories flooding back for young and old. You can get closer to the action and feel that he wanted to be in the spotlight. Other technology advancements are the midsole. It has a compression molded EVA for lasting impact protection. A Vibrakill shock-absorber in the heel provides a lot of [url=http://markwarren.org.uk/property-waet.cfm]air max 90[/url] comfort, and the Exact Pro technology combines a pebax plate and a Dynamic camflex in the forefoot for improved energy return on every step. Meindl Borneo Lady Pro - This shoe is just one of my wifes most popular hiking boots. It is appropriate for lengthy outdoor hikes and you can actually do a tiny stretch of hill hiking whilst sporting them. This product also includes memory foam
ReplyNew one
Posted by snareenactina on 11/10/2012 06:17pmfreehttp PRINCETON, NJ -- The Gallup Economic Confidence Index was negative in all 50 states in the first half of 2012, but positive in the District of Columbia. West Virginia was by far the most negative, at -44. Minnesota edged out South Dakota and Maryland as the least negative state in the U.S., with an index score of -6, while the residents of the District of Columbia were solidly positive, at +29. I disagree with him about the ââ¬Åfamily unificationââ¬Å¥ thing but I do, also, respect that from a position of humanity. UNFORTUNATELy, itââ¬â¢s a process that is widely abused by both legal and illegal immigrants because they bring in dependent young, old and affirmed otherwise and the taxpayers again get higher dependency roles because of that. In some jurisdictions, collectors may legally keep antique weapons made incapable of being readily restored to a firing condition. santo Some record to run on which is why he runs from it and why so many want govt to rein in spending because this nation can only afford so much and the path that Obama has us on will result in far more destruction. materialist Finance has long reigned supreme in business school, but sales is starting to gain ground abil With the health care tab for last year coming to $2.5 trillion, health care spending now represents 17.3 percent of the nationââ¬â¢s gross domestic product ââ¬â a 1.1 percent bigger portion of the nationââ¬â¢s economy than in 2008. minks Chart range: archivists And how horrible a situation it is, to have so many of our lives dependent on the very system that is poisoning our bodies and destroying our homes. What can we do, when many of us have as our only life support jobs that depend on, and make possible, this destruction? absorbent Copyright 2012 Dow Jones & Company, Inc. All Rights Reserved tracksran We can help you produce materials to make your business grow. Signs, banners, and more attract customers' attention and communicate your message effectively.
ReplyMaximize form
Posted by Legacy on 07/16/2002 12:00amOriginally posted by: alenbabu
ReplyHow can I paint the bgcolor in WIN CE 3.0?
Posted by Legacy on 01/18/2002 12:00amOriginally posted by: kang ilkoo
In win ce 3.0 MFC , there is no SetBackgroundColor method...
Reply
Bestway to paint the background colo
Posted by Legacy on 11/12/2001 12:00amOriginally posted by: Pat Tharmarajah
Do
the following in your MFC CFormView class
HBRUSH CFormView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CFormView::OnCtlColor(pDC, pWnd, nCtlColor);
// you can choos any color
return(::CreateSolidBrush(RGB(77,0,77)));
// TODO: Return a different brush if the default is not desired
Replyreturn hbr;
}
Bestway to paint the background colo
Posted by Legacy on 11/12/2001 12:00amOriginally posted by: Pat Tharmarajah
ReplySimple Formview BG Color
Posted by Legacy on 08/14/2001 12:00amOriginally posted by: Mark Clouden
Replyhow to do the First step??I dun get it....
Posted by Legacy on 03/25/2001 12:00amOriginally posted by: stephen
is that actually put "class CMyFormView : public CColorFormView" in the View header file or what..
i dun know how to derive my form view class from CColorFormView class!!~~thank you
ReplyProblem with EditView
Posted by Legacy on 01/28/2001 12:00amOriginally posted by: Rajasekhar
Hello!
I am developing an application in eVC 3.0 using document/view architecture.My main view is CView.It's working fine.I have one more screen with base calss as CEditView.It's working fine to write something and to save.But when i tried to open a file, after selecting the file name, this view getting disappeared and the main view is coming up.How to keep the CEditView as the top view until i want.I am not implementing the Open Dialog functionality.
I have a from with CFormView as the base class.I don't want the default scroll bars.How to remove them.
When i implemented the Open Dialog functionality it's not showing the files available in a directory.What might be the problem?
Please help me in this regard.
Please send mail to chavasekhar@rediffmail.com
Thanking you,
Rajasekhar
ReplyScreen flashing
Posted by Legacy on 05/11/2000 12:00amOriginally posted by: Tong Chen
I used your idea on CView, it worked. There is only one question: screen is always flashing when I resize the child windlow. Do you have any idea?
ReplyLoading, Please Wait ...