Fragments
A Collection of Statements, kinda
ATL Hidden Windows

 
Post new topic   Reply to topic    Fragments Forum Index -> Other Articles
View previous topic :: View next topic  
Author Message
martin
Site Admin


Joined: 19 Jan 2004
Posts: 455
Location: In the middle of Sweden

Reply with quote

PostPosted: Fri May 14, 2004 2:15 pm    Post subject: ATL Hidden Windows

Getting timer messages into an ATL object isn't all that evident. If you create a full control and it remains invisible in runtime, it has no windows handle, so you can't use the classical ::SetTimer(hWnd,...) to get the timer messages.

The trick is to create another ATL window object that does absolutely nothing but create a window and get these messages. Then have the timer message handler call whatever method you want in your "real" ATL object. [full article]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Fragments Forum Index -> Other Articles All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Theme created by K.Nevelsteen