Solved

WM_SIZING & WS_TOOLBAR WIndow Class

Posted on 1997-04-04
1
355 Views
Last Modified: 2011-09-20
I am trying to create an IDE like the Visual C++ IDE, and
I have a docking controlbar window derived from CDialogBar that contains a few controls that I want to dynamically size AFTER I undock the DialogBar(I derived a class that allows it to be resized, scarfed from the MS Developers Network).  This is much like the file/class/resource/info list on the left of the Visual C++ IDE.  The problem is, it never gets WM_SIZING messages, unlike the VC++ window, which does get them.  Why not?  Our window styles(via spy++) are exactly the same, save for a 0x001000 addition on mine, and a 0x03300 on theirs(I dont know why).  I need the WM_SIZING message to know what end is being drawn out, so I can resize my TreeView controls appropriately.  Help.
0
Comment
Question by:mpdff
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 100 total points
ID: 1162563
hi:

Subclass or derive your controlbar's parent and handle WM_PARENTNOTIFY message.

ParentNotify is send when child destroyed, created, sized but not moved,

consult help file for details of the message

good luck

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

772 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