April 14th, 2005, 07:50 PM
If you want to create CMyCalss in your app you should exprot CMyClass from dll.
There is another way just like COM's methord.
April 13th, 2005, 07:59 PM
I have found some other way to do the same thing.
thanks. : )
April 12th, 2005, 08:36 PM
When a worker thread sends a message to a window, the SendMessage function queues up the message for the window.
If SendMessage is called from the same thread that owns the window, the message is...
April 12th, 2005, 07:32 PM
::SendMessage(hWnd, WM_COPYDATA, (WPARAM)m_hWnd, (LPARAM)©data);
I think the problem is no thread call GetMessage.
but how can i create a thread to call?
April 12th, 2005, 12:30 PM
I want to encapsulate IPC into a dll, so I dont want to import a handle from other window. Instead, I created a window in the dll to receive message, but when i send WM_COPYDATA from other process,...
April 3rd, 2004, 07:30 PM
April 3rd, 2004, 09:34 AM
put this code to your child frame's OnUpdateFrameTitle
if ((GetStyle() & FWS_ADDTOTITLE) == 0)
return; // leave child...
April 3rd, 2004, 07:34 AM
sorry , I forgot to tell you that you should get rid of the main frame's OnUpdateFrameTitle.
April 3rd, 2004, 05:11 AM
try to copy the following code to your overrided CMDIChildWnd::OnUpdateFrameTitle(BOOL bAddToTitle) fuction.
if ((GetStyle() &...
April 3rd, 2004, 03:56 AM
I don't know how to move the OnUpdateCmdUI to MainFrame, the toolbar is a view's variable. But I've resolved the problem by you guide. Just override the OnUpdateCmdUI fuction.
April 2nd, 2004, 10:12 PM
I've created a toolbar in one of my views and handled the message in the view. All works fine. But when that view is inactived, the buttons on the toolbar is auto disenabled. It looks urgly. If I...
April 2nd, 2004, 09:53 PM
You can change your title by SetWindowText or override CMDIChildWnd::OnUpdateFrameTitle. The title is change in the fuction.