Solved

CSplitterWnd and WM_SIZE

Posted on 1998-04-30
5
413 Views
Last Modified: 2013-11-19
I've got a static splitter with 2 views. I need to do some initialisation after the views have received all
the initial WM_SIZE messages. Is there a message or virtual function that is guaranteed to be called after all
the initial WM_SIZE messages?
(somebody suggested overriding CSplitterWnd::SplitRow earlier, but it only gets called for dynamic splitters)
0
Comment
Question by:roar
[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
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 100 total points
ID: 1304562
CView::OnInitialUpdate()
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1304563
Or OnUpdate()
0
 

Author Comment

by:roar
ID: 1304564
That would be the obvious place to do it.
Unfortunately, the view's OnSize gets called after OnUpdate.
0
 

Author Comment

by:roar
ID: 1304565
By setting breakpoints, I see the following order during creation.
CMyView::OnSize
CMyView::OnInitialUpdate
CMyView::OnUpdate
CMyView::OnSize

I looking for a place to do initialisation after the last OnSize.
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1304566
There is nothing to be called after last OnSize(). But you can create some flag to be turn from FALSE (default) to TRUE to allow initialization on specific condition (something like OnSize was called two times, etc..) or try to think of another place to put your initialization code (like set some values in OnInitialUpdate() and adjust them latter).
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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

623 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