Re: Non-modal dialog in CSplitterWindow???
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Thu, 16 Mar 2006 06:47:33 -0500
I want a dialog that does not float, but sits on the left side of the
frame window. One should be able to make it thinner (resize it
horizontally), so a splitter bar would be perfect. The dialog should be
able to scroll vertically, though.
Here is my (ugly) workaround: I use a CScrollView instead of the dialog.
This view has empty OnUpdate-handlers, so it won't mess with the tool
bar. Any OnCommands from the tool bar are routed by hand to the view.
I believe that this is quite unsophisticated. There should be a better
way to do this in MFC. I will have a look at the CDialogBar class. Is it
possible to create a dialog bar with any dialog template? Even
containing edits and such? Can I make a CDialogBar scrollable?
Wanting the dialog resizable and scrollable are two strong reasons to prefer CFormView in a splitter pane. (Note that CFormView inherits from CScrollView: The scrolling will be automatic.)
For the toolbar OnUpdate issue you have your choice between the recommended ugly workaround and your own ugly workaround :(
The toolbar is a child of the mainframe and is created/resized by it, so I don't think that solution is ugly at all. :)
--
Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: Non-modal dialog in CSplitterWindow???
- From: Stuart Redmann
- Re: Non-modal dialog in CSplitterWindow???
- References:
- Non-modal dialog in CSplitterWindow???
- From: Stuart Redmann
- Re: Non-modal dialog in CSplitterWindow???
- From: Stuart Redmann
- Re: Non-modal dialog in CSplitterWindow???
- From: KMA
- Non-modal dialog in CSplitterWindow???
- Prev by Date: Re: How to send a message to a thread ?
- Next by Date: Re: How to send a message to a thread ?
- Previous by thread: Re: Non-modal dialog in CSplitterWindow???
- Next by thread: Re: Non-modal dialog in CSplitterWindow???
- Index(es):
Relevant Pages
|