OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 2:09 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re:Custom Controls
PostPosted: Sat Dec 14, 2002 9:50 am 
You don't have to subclass the parent. The windows standard controls behave the same way (no focus when you task switch away). Dialog boxes, if I'm not mistaken, automatically keep track of which child window has focus and put the focus back at the correct child when they are activated again. But if you have a regular old parent window, then not even Windows edit boxes, list boxes, etc. will get input focus unless the parent sets it. So, I guess that means you only have to write the control so that it obtains focus when it is clicked on. It is the parent's responsibility to do everything else.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 101 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group