Author |
Topic: Docking a dialogue box in an MDI interface (Read 891 times) |
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Docking a dialogue box in an MDI interface
« Thread started on: Jun 19th, 2014, 7:42pm » |
|
Hello,
Is it possible to dock a dialogue box into a window of a MDI interface?
Thanks , Josh
|
|
Logged
|
|
|
|
rtr
Guest
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #1 on: Jun 21st, 2014, 06:30am » |
|
on Jun 19th, 2014, 7:42pm, JB91 wrote:Is it possible to dock a dialogue box into a window of a MDI interface? |
|
My earlier reply seems to have evaporated, so, once again - I don't think I have ever tried it but I can't think of any reason why it shouldn't work. Does it seem to?
Richard.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #2 on: Jun 21st, 2014, 07:19am » |
|
I can't seem to get it to work. The docked dialogue box refuses any interaction and the title bar of the window disappears.
|
|
Logged
|
|
|
|
rtr
Guest
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #3 on: Jun 21st, 2014, 3:49pm » |
|
on Jun 21st, 2014, 07:19am, JB91 wrote:I can't seem to get it to work. The docked dialogue box refuses any interaction and the title bar of the window disappears. |
|
The title bar disappearing will probably be just an inappropriate style value (make sure that WS_CAPTION is set).
The lack of interaction may mean that the WndProc in MDILIB.BBC needs to be amended to forward the appropriate message(s) to the parent window. As that is assembler code it's a non-trivial modification.
Richard.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #4 on: Jun 22nd, 2014, 2:07pm » |
|
I can't seem to get that to work either - I probably should learn some more assembly language!
|
|
Logged
|
|
|
|
rtr
Guest
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #5 on: Jun 23rd, 2014, 7:57pm » |
|
on Jun 22nd, 2014, 2:07pm, JB91 wrote:I can't seem to get that to work either - I probably should learn some more assembly language! |
|
Microsoft consider the MDI to be largely obsolete - they no longer use it in any of their products AFAIK. Although it's still notionally supported by the Win32 API, you may have more success by avoiding the use of the MDI and doing things another way.
Richard.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Docking a dialogue box in an MDI interface
« Reply #6 on: Jun 26th, 2014, 3:51pm » |
|
Thank you for your advice, Richard. I shall try to use a different method instead of the MDI.
I realise now that the user most likely want to resize the dialogue box, which will probably require repositioning its contents - a task that sounds quite tedious.
Once again, thank you!
|
|
Logged
|
|
|
|
|