Solved

Redraw after WM_SIZE

Posted on 1998-03-19
1
1,183 Views
Last Modified: 2013-11-19
I have an mfc-application that I want to be able to resize, so whenever I get a WM_SIZE message  I recalculate the size of each control in the window. If I resize horizontally everything works fine, but if I resize vertically the window and the controlls are not repainted correctly. If I get a WM_PAINT message due to minimize or another window ontop it looks great, but how do I set the window to repaint automaticly as it does when resizing horizontally?

I know there are styles as CS_VREDRAW and CS_HREDRAW which should be set when registrating the class, but since mfc does that for me I have no clue in how to do this.

/ Andreas
0
Comment
Question by:cost
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
mnguyen021997 earned 100 total points
ID: 1317095
how about invalidaterect() and updatewindow()?
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question