Click to See Complete Forum and Search --> : Trouble with refreshing my child window


April 7th, 1999, 09:34 AM
In my application I have two view classes. The second view window is created by clicking a menu item. The creation of the window is done by the following code
.
.
.
pNewChild = new CMDIChildWnd;
if (!pNewChild->Create(NULL,lpszWindowName,
WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW, r, NULL, NULL))
return;
.
.
.
Some text is then dispalyed in that window. When I try to maximize or resize this window, however, the text does not reappear. In some way or the other the OnDraw function is not triggered. Does anybody know what I have to do in order to refresh the child window?

Oak
April 9th, 1999, 06:26 AM
try
pNewChild->PostMessage(WM_PAINT);
maybe it will help