function WM_ERASEBKGND
-
plz tell me where i found the function WM_ERASEBKGND to change color in clas wizard OnEraseBkgnd(CDC *pDC) Please mail me
-
plz tell me where i found the function WM_ERASEBKGND to change color in clas wizard OnEraseBkgnd(CDC *pDC) Please mail me
1. Go to Class Wizard and select required the message from the class (make sure that you have selected correct class) "Add Handler" there 2. Right click on the class and select "Add Message Handler" SaRath.
"Do Next Thing..." My Blog | Understanding State Pattern in C++ -
1. Go to Class Wizard and select required the message from the class (make sure that you have selected correct class) "Add Handler" there 2. Right click on the class and select "Add Message Handler" SaRath.
"Do Next Thing..." My Blog | Understanding State Pattern in C++sir i am sorry what i dont understand when i go to class wizard there is no function WM_ERASEBKGND plz help me Please mail me
-
sir i am sorry what i dont understand when i go to class wizard there is no function WM_ERASEBKGND plz help me Please mail me
-
How you are created you app? using classwizard? SaRath.
"Do Next Thing..." My Blog | Understanding State Pattern in C++i made a dialog based application and now i want to change my dialog box color i know that WMPAINT work for this what i want to use WM_ERASEBKGND could it be possible Please mail me
-
sir i am sorry what i dont understand when i go to class wizard there is no function WM_ERASEBKGND plz help me Please mail me
one simple way insert this codes in your file(I think you need to learning VC)but anyway for solve your problem use this in header file
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
in cpp file insertBOOL your class name::OnEraseBkgnd(CDC* pDC) { // TODO: Add your message handler code here and/or call return CDialog::OnEraseBkgnd(pDC); }
_**
**_
whitesky
-
plz tell me where i found the function WM_ERASEBKGND to change color in clas wizard OnEraseBkgnd(CDC *pDC) Please mail me
You should open your dialog in dialog editor and then click on caption bar of your dialog. Then go to View --> Properties Window, activate the panel with Windows messages by clicking a toolbar button. Then select
WM_ERASEBKGND
event and add the handler. The simplest handler can look like this:BOOL CMyDialog::OnEraseBkgnd(CDC * pDC) { pDC->FillSolidRect(0, 0, 32000, 32000, RGB(0, 0, 255)); // blue return TRUE; }
-
sir i am sorry what i dont understand when i go to class wizard there is no function WM_ERASEBKGND plz help me Please mail me
Depending on the class type (e.g. Dialog, MDI Child Frame, etc.), ClassWizard filters the messages. To show all messages do the following:
- select "Class Info" tab;
- from "Message filter" combo box, choose "Window";
- go back to "Message Maps" tab; now all available messages are displayed in the "Messages" list.
Ovidiu Cucu Microsoft MVP - Visual C++
-
i made a dialog based application and now i want to change my dialog box color i know that WMPAINT work for this what i want to use WM_ERASEBKGND could it be possible Please mail me