there is an easy was aswell take a variable of type CBrush at class level like CBrush m_Bursh; initiate it in OnInitDialog like m_Bursh.CreateSolidBrush(RGB(0,0,0));//OR ANY OTHER COLOR u WANT override the WM_CTCOLOR message handler and add this line to its implemention HBRUSH CBaseView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { return m_Brush; }
Shehzad Salim
Posts
-
How to change background color of CDialog and it's elements -
Does anyone knows thiswhat is NNTP Addresss of this forum
-
How to REALLY export/import VS2003 IDE customization?If you have found the solution plz tell us as well
-
CEdit cancel keystrokessimply subclass CEdit class and then override these evernts
-
Open a Web Browserwhere to give the url there is nothing webBrowser.Url or something like that
-
Which is the simplest way to close an application?The best way is to send WM_CLOSE message at any time
-
Anone used CxImage??Davide Pizzolato wrote: The CxImgLib.dsw workspace shows the libraries required to build an application (demo.exe) including almost all the features and the formats available in CxImage. You must compile all the libraries before you can link the final application. In the same workspace you'll find the projects to build different libraries and applications: CxImage : cximage.lib - static library CxImageCrtDll : cximagecrt.dll - DLL not using mfc CxImageMfcDll : cximage.dll - DLL using mfc Demo : demo.exe - program linked with cximage.lib and the C libraries DemoDll : demodll.exe - program linked with cximagecrt.dll j2k,jasper,jbig,jpeg,png,tiff,zlib : static C libraries So from above you should look that whether u have build all of your libraries
-
CtreeCtrlAntti Keskinen wrote: Set the window style flags using the member variable and ModifyStyle method to remove the WS_HSCROLL flag. This will remove the horizontal scrollbar. well but what if I really have something in my tree control which needs to have a horizontal scrollbar
-
How to access Member functions of Application classthe application class object is taken global named theApp which you can see in your global list simple extern that variable in the file where u want to use that variable then call the user defined functions using the theApp object
-
The futureI would say if you r good in C++, just keep on working in C++, and be confident
-
How to set the original size of a window?CRect rc; GetWindowRect(rc); rc.Width(); rc.Height();
-
Visual .net - should I go for it?ok
-
Ask for Help!!1. Try to clean the project and rebuild all 2. May be u have used such controls in your application which don't let u start your application