Hi!<div><br></div><div>I'm trying to write a WinAPI example to have multi-threaded GUI. I wanna have a Window class, which creates a window and listens to its messages in a separate thread when constructed.  This will allow me to write a main function like this:</div>
<div><br></div><div>void main()</div><div>{</div><div>    Window w = new Window;</div><div>    w.move(100, 200);</div><div>    w.resize(800, 600);</div><div>    w.show();</div><div>}</div><div><br></div><div>The methods called for the window will send asynchronous messages, which will cause the window to change its position, size and visibility on-the-fly. This is convenient, because no message loop needs to be launched separately and every window will rocess its messages in a separate thread.</div>
<div><br></div><div>Can anyone please tell me how to achieve this?</div><div><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>