Click here to Skip to main content
16,008,954 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreating A Bitmap Pin
AJ12322-Jul-01 12:35
AJ12322-Jul-01 12:35 
GeneralRe: Creating A Bitmap Pin
Christian Graus22-Jul-01 14:11
protectorChristian Graus22-Jul-01 14:11 
QuestionNewbie Q: Update statusbar from view? Pin
22-Jul-01 12:00
suss22-Jul-01 12:00 
AnswerRe: Newbie Q: Update statusbar from view? Pin
Michael Dunn22-Jul-01 12:24
sitebuilderMichael Dunn22-Jul-01 12:24 
Generaldocking dialogbars Pin
Peter Marino22-Jul-01 9:49
Peter Marino22-Jul-01 9:49 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 20:37
Diarrhio22-Jul-01 20:37 
GeneralRe: docking dialogbars Pin
Peter Marino22-Jul-01 21:40
Peter Marino22-Jul-01 21:40 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:31
Diarrhio22-Jul-01 22:31 
Damnit! I just typed out this whole response to you, and Explorer ate it. Frigging microsoft...

Anyways, here's the gist of what i typed:

I can tell that my app will be heading down this exact same path, so I hope we find an answer to this question together.

I think that Load/SaveBarState info is all contextual info, meaning, the info is based on the dialogbars docked position/size relative to (in the context of) all the other docked dialogbars and toolbars, so I don't think LoadBarState will ever be able to work for you under these circumstances.

Even if you get around that, you'll still have to figure out a way to get LoadBarState to ignore (i.e. not create) dialog bars for which the user doesn't have a dll for.

There is a method on CFrameWnd called GetDockState which fills a CDockState object. You might try calling that to see what you can find.

But, I think your best bet is to do the loading/saving of docking info yourself, and use a couple of undocumented public methods on CControlBar:

void GetBarInfo(CControlBarInfo* pInfo);
void SetBarInfo(CControlBarInfo* pInfo, CFrameWnd* pFrameWnd);

browse the MFC source code to see how these work. They are declared in the header AFXEXT.H, and CControlBarInfo is defined in AFXPRIV.H, as are a couple of other useful classes.

Let me know what you find!

D
Smile | :)
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:33
Diarrhio22-Jul-01 22:33 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:34
Diarrhio22-Jul-01 22:34 
GeneralRe: docking dialogbars Pin
Peter Marino23-Jul-01 9:20
Peter Marino23-Jul-01 9:20 
GeneralRe: docking dialogbars Pin
Diarrhio23-Jul-01 12:07
Diarrhio23-Jul-01 12:07 
GeneralRe: docking dialogbars Pin
Peter Marino23-Jul-01 21:35
Peter Marino23-Jul-01 21:35 
GeneralRe: docking dialogbars Pin
Diarrhio23-Jul-01 22:18
Diarrhio23-Jul-01 22:18 
GeneralRe: docking dialogbars Pin
Diarrhio24-Jul-01 20:53
Diarrhio24-Jul-01 20:53 
GeneralRe: docking dialogbars Pin
Peter Marino25-Jul-01 8:11
Peter Marino25-Jul-01 8:11 
Questionwhich type of variable for exa nambers ??? Pin
22-Jul-01 9:29
suss22-Jul-01 9:29 
AnswerRe: which type of variable for exa nambers ??? Pin
Jim A. Johnson22-Jul-01 9:54
Jim A. Johnson22-Jul-01 9:54 
GeneralThank you very much !!! Pin
22-Jul-01 23:24
suss22-Jul-01 23:24 
GeneralPlease help blinking the scroll lock light Pin
22-Jul-01 6:01
suss22-Jul-01 6:01 
GeneralPassing lists Pin
22-Jul-01 5:41
suss22-Jul-01 5:41 
QuestionClass Design - your thoughts? Pin
22-Jul-01 5:20
suss22-Jul-01 5:20 
GeneralHBITMAP AND BITMAPINFOHEADER Pin
AJ12322-Jul-01 1:56
AJ12322-Jul-01 1:56 
GeneralRe: HBITMAP AND BITMAPINFOHEADER Pin
Chris Losinger22-Jul-01 3:51
professionalChris Losinger22-Jul-01 3:51 
QuestionWhat can DLL and LIB do? How to create DLL and LIB files and How can u use these back within a VC++ program? Pin
will22-Jul-01 1:48
will22-Jul-01 1:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.