Solved

Assertion on CWnd::MoveWindow()

Posted on 1997-07-21
2
386 Views
Last Modified: 2013-11-20
Hi,

I get an assertion when I move a control window in a dialog box in response to the first WM_SIZE message the dialog receives. The assertion tells me that the control is not a valid window. It looks like the control is not fully created when I receive the message.

Can someone explain me what's going on. There is obviouly something I don't catch.

Thanks for your help.
0
Comment
Question by:Koensayr
2 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 50 total points
ID: 1302703
All right. All control window are not valid when dialog window receives WM_SIZE message first time. Do what you want in OnInitDialog method or at first WM_PAINT message receiving.
0
 

Author Comment

by:Koensayr
ID: 1302704
Just to make sure I understand everything

What you're saying is that it is normal to receive a WM_SIZE message before OnInitDialog is called and there's nothing I can do about it? right.

Thanks
Eric


0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 130
fix34  challenge 9 118
Line meaning 9 85
Annoying "thing" blocks my view 4 100
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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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