Solved

GetParentFrame() in MFC Extension DLL.

Posted on 1997-09-03
1
339 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
1 Comment
 
LVL 1

Accepted Solution

by:
ohell earned 100 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now