About Dialog Box : Plz Help Urgent
-
Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. Reply Urgently Praveen Chowdam Kumar
parims wrote: Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. OK. Handle the OnEraseBkgnd() like this: .... OnEraseBkgnd(CDC* pDC) { CRect rect; GetClientRect(&rect); pDC->FillSolidRect(&rect,RGB(255,0,0)); return TRUE; } The events list for a dialog box does not normally display this message to be handled in VC6. You need to change the "Filter for messages.." combo box to "Window". Now the background will be bright Red. To change the foreground, do you mean Static text etc? Then you will need to subclass the CStatic, and handle its painting yourself. You can find many CStatic samples here on CP. this is this.
-
Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. Reply Urgently Praveen Chowdam Kumar
there's no need to be so hurrying, because if anyone knows the answer, or if anyone want to answer you, you will stay in the same state. moreover, you seem so hurry that i doubt you googled your problem, or even searched CodeProject for that. CodeProject[^] Google[^]
TOXCCT >>> GEII power
[toxcct][VisualCalc]