Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

Coloring Rect of Create(lpszText,dwstyle,&rect,parentwnd,nID) white

$
0
0
I have below code

Code:

CStatic *text = new CStaic ;
CRect textrect(10,20,70,50);
MapDialogRect(&tectrect);

text -> Create(name.data(),WS_CHILD | WS_VISIBLE | SS_RIGHT,textrect,this);

The problem is text is displayed on rectangle with gray color. How can i paint that rectangle color to white?

Viewing all articles
Browse latest Browse all 3027

Trending Articles