Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Redraw after WM_SIZE

Posted on 1998-03-19
1
Medium Priority
?
1,200 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 200 total points
ID: 1317095
how about invalidaterect() and updatewindow()?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 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