Sending Message
-
Hi, I have an MDI application whose main frame will receive a message which should be sent to the correct view..With this message i will be having an Object ID(i.e. One of my child window has some object on which i have clicked..the ID of that object is sent to a second application which Sends a message back to the first application with ID).So is there any way i can identify the correct view with the help of this Object ID??????? Plz reply Thanx in advance Poorni
-
Hi, I have an MDI application whose main frame will receive a message which should be sent to the correct view..With this message i will be having an Object ID(i.e. One of my child window has some object on which i have clicked..the ID of that object is sent to a second application which Sends a message back to the first application with ID).So is there any way i can identify the correct view with the help of this Object ID??????? Plz reply Thanx in advance Poorni
From the main frame, get the document to iterarate round all the current views (CDocument::GetFirstViewPosition & CDocument::GetNextView. Add a OwnsObject function to each view, and call it for each view. In that function, have the view check to see if it owns the supplied object ID.
-
From the main frame, get the document to iterarate round all the current views (CDocument::GetFirstViewPosition & CDocument::GetNextView. Add a OwnsObject function to each view, and call it for each view. In that function, have the view check to see if it owns the supplied object ID.
Hi, In the MainFrame when i try getting the document pointer its giving me error ..Can u explain me in detail how to do it??? Pls help me Poorni
-
Hi, In the MainFrame when i try getting the document pointer its giving me error ..Can u explain me in detail how to do it??? Pls help me Poorni