Hi!
i'm used to sending messages from a view class (in mfc), so first i get the window

Code:
		HWND *viewhandle = new HWND;
		*viewhandle = GetSafeHwnd();
copy the viewhandle to a variable of the object, and in a function, when i want to send a message, i call:

Code:
::PostMessage(*viewhandle, WM_ONWHATEVER, 0, 0);
That works fine. Now, i want to send a message from a class to another, and there are no windows involved.

I want to do this: class AA includes class BB. And i want to use a function of class AA from class BB, but class BB doesn't see class AA. So i want to send a message

But now i can't use GetSafeHwnd. How could i do that?

thanks!