Solved

WM_SIZING & WS_TOOLBAR WIndow Class

Posted on 1997-04-04
1
346 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now