Hi, i am having a problem trying to migrate a dll from MFC to plain Win32, i am stuck in a part that creates a window, i can create the window but i need WndProc method to be called in the mainthread because the app(firefox) denies calls to its methods from a thread.
In MFC side worked with the hidden window, but trying to migrate it to win32 is where i don't understand how did it worked, i tried to create a method and put the CreateWindow code there and the end the message loop but it stops there and i need it to exit that method, using that i can send messages to firefox and works because WndProc is in the main thread.
I have already tried creating the window in another thread but then firefox denies calls to its methods because is not the main thread.
How does MFC does this? :(
Thanks