Solved

GetParentFrame() in MFC Extension DLL.

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
how to monitor remote shell execution on linux 9 107
sumDigits challenge 9 172
dog bark java program 15 121
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.

749 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