Link to home
Start Free TrialLog in
Avatar of 7thAvatar
7thAvatar

asked on

MFC Logging to dialog box

I have mainframe create mydialog on a dialogbar.
user can select multiple dialogs on the dialogbar, but the message logging should continue no matter what dialog you are on.

most of this is functional already, but i need a method of sending logging data to the dialog from outside the MFC framework. for example,i have an object class that is loaded at runtime using loadlibrary functions. while this is being loaded and creaed, i would like to send messages to the dialogbox for viewing. the troubl eis that the object class has no knowledge of the dialog box, or the mfc app that is running.

can i use a sendmessage to get the data to the dialogbox?

something like SendMessage(NULL,WM_USER+1,data,data2);

I have tried multiple attempts but to no avail :(
Any help would be greatly appreciated.

Seven
Avatar of 7thAvatar
7thAvatar

ASKER

I have figured this out........
Seven
What was your solution?
it's a hack but it works just great.
I have a dll that i use for logging error. In this dll I just save the m_hWnd of the view that is created and then send messages to that view. the view in turn routes the message to it's parent, in this case the frame, which routes it to the dialogbox. not the cleanest in the world, but it works :)

Seven
ASKER CERTIFIED SOLUTION
Avatar of GhostMod
GhostMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial