Re: WTL, GUI and Thread

"Igor Tandetnik" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
mgrandau wrote:
> Just PostMessage a WM_SETTEXT to the window handle of the status window.

You can't really use WM_SETTEXT with PostMessage, except perhaps when using a hardcoded string literal for the text. Otherwise, you'll either leak the string or deallocate it prematurely (before the message is processed by the target thread).

Igor Tandetnik



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.