Changing Colour in CDocument
-
Hi all, Dose any body known how to change the color of mydoc in MDI program. I have created an Rich Text Control in the Mydoc and i set the rect to 40 pixals in so their is a space between the start of the my doc and i want to colour in that because it white and i want gray colour i trying to make it look like Visual C++ the code window so i could have line count beside the richtext box or do i have to do something different? I new at this Visaul C++ so could any body please send me on the right track. thanks an lot :)
-
Hi all, Dose any body known how to change the color of mydoc in MDI program. I have created an Rich Text Control in the Mydoc and i set the rect to 40 pixals in so their is a space between the start of the my doc and i want to colour in that because it white and i want gray colour i trying to make it look like Visual C++ the code window so i could have line count beside the richtext box or do i have to do something different? I new at this Visaul C++ so could any body please send me on the right track. thanks an lot :)
Try to use WM_ERASEBKGND message. Default handler paints window client area with color COLOR_WINDOW, and you can add own painting routine to cover over rect with gray.
-
Hi all, Dose any body known how to change the color of mydoc in MDI program. I have created an Rich Text Control in the Mydoc and i set the rect to 40 pixals in so their is a space between the start of the my doc and i want to colour in that because it white and i want gray colour i trying to make it look like Visual C++ the code window so i could have line count beside the richtext box or do i have to do something different? I new at this Visaul C++ so could any body please send me on the right track. thanks an lot :)