Solved

GetParentFrame() in MFC Extension DLL.

Posted on 1997-09-03
1
342 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

13 Experts available now in Live!

Get 1:1 Help Now