Questions about MDI application

  • Thread starter Thread starter FP
  • Start date Start date
F

FP

Hi,
i would like to write an MDI application with MS VS2005,but i have some
preliminary questions.
1)If i place a control,say a button,in the MDI parent's client area,this
control will always appear on top of child dialogs.How can i fix it?

2)I would like to use a backgroud image for the client area,but i would
also like the user to interact with this image,making him capable to do
different things depending on the zone he clicks:for example in this image
there might be a house and a tree (i know....sucky example :)) ).So i would
like that,if the user clicks the house's portion of the image,the "house"
dialog is shown,while instead if he clicks the tree portion,the "tree"
dialog is shown.So,something similar to what happens with the AREA html
tag,basically dividing an image in "regions".How could i do this?

Thanks in advance :))
 
Hi,
i would like to write an MDI application with MS VS2005,but i have some
preliminary questions.
1)If i place a control,say a button,in the MDI parent's client area,this
control will always appear on top of child dialogs.How can i fix it?

Use the Visible property appropriately.
2)I would like to use a backgroud image for the client area,but i would
also like the user to interact with this image,making him capable to do
different things depending on the zone he clicks:for example in this image
there might be a house and a tree (i know....sucky example :)) ).So i would
like that,if the user clicks the house's portion of the image,the "house"
dialog is shown,while instead if he clicks the tree portion,the "tree"
dialog is shown.So,something similar to what happens with the AREA html
tag,basically dividing an image in "regions".How could i do this?

Place four panels on top of the image control and use the Click event
for each panel.
 
Back
Top