?
Solved

Assertion on CWnd::MoveWindow()

Posted on 1997-07-21
2
Medium Priority
?
397 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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. …
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…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

741 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