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

x
?
Solved

Assertion on CWnd::MoveWindow()

Posted on 1997-07-21
2
Medium Priority
?
412 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
[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
2 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

610 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