CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Trouble with refreshing my child window

    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?


  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: Trouble with refreshing my child window

    try
    pNewChild->PostMessage(WM_PAINT);
    maybe it will help


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured