?
Solved

GetParentFrame() in MFC Extension DLL.

Posted on 1997-09-03
1
Medium Priority
?
363 Views
Last Modified: 2013-11-20
 Environment: Windows NT4.0 (sp3), VC++5.0

I have been making some of my code re-usable by compiling it into a MFC Extension DLL. The code is responsible for displaying DIBs, including scrolling, zooming, and adding annotations. The code worked fine when it was compiled directly into my application.

I have found however that now that it is a MFC Extension DLL, when the scrollbars are activated they overlap the toolbar and the status bar.

I use the function GetParentFrame() to locate the frame where the scrollbars should be attached. In a MFC Extension DLL does this not take into account the toolbar and status bar? Is there a function that will determine the frame excluding the toolbar and status bar? Do I have to work this out myself, in which case how can I shrink the scrollbar, or reposition it based on where the toolbar / status bar is.

Spencer Jones
Azure Limited.
0
Comment
Question by:sdj
[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
1 Comment
 
LVL 1

Accepted Solution

by:
ohell earned 200 total points
ID: 1305612
I think your problem will disappear if you just call CFrameWnd::RecalcLayout() after you have turned the scroll bars on.

Hope this helps.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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