Link to home
Start Free TrialLog in
Avatar of sdj
sdj

asked on

GetParentFrame() in MFC Extension DLL.

 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.
ASKER CERTIFIED SOLUTION
Avatar of ohell
ohell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial