toolbar programming question
-
hi, if i have an application, using windows explorer style(consist of left pane and right pane), i want to create a button in the toolbar that delete a selected/highlighted item in either left pane or right pane(can't delete both at the same time).. can this be done? or should i just use 2 buttons instead(one button for deleting items in leftpane and another one for deleting items in right pane).. thx in advance!
-
hi, if i have an application, using windows explorer style(consist of left pane and right pane), i want to create a button in the toolbar that delete a selected/highlighted item in either left pane or right pane(can't delete both at the same time).. can this be done? or should i just use 2 buttons instead(one button for deleting items in leftpane and another one for deleting items in right pane).. thx in advance!
You only need one button (think about the copy/cut/paste button in windows explorer, they may be used in both left and right panes). I do not know much about MDI (since I've developped only few such app till now), but with
GetActiveView
, you should be able to grab the view whith the item currently selected when hitting your remove button. ~RaGE();