Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

почему моя программа нехочет работать нормально 3-я часть [D7, Win95/98]


sergey1 ©   (2005-12-15 04:34:00) 

в данный момент программа немного переделана , производится обновление окон после выбора ListBox'a чтобы затереть курсор дабы не было двух курсоров в обоих ListBox'ах ,сделан для видимого обозрения активного ListBox'a . Теперь вопрос как определить какой из 2-х ListBox является активным, т.е. где находится курсор.


ShiFT   (2005-12-15 08:45:00) [1]

HWND GetFocus(VOID)

Parameters
 This function has no parameters.

Return Values
 If the function succeeds, the return value is the handle of the window with the keyboard focus. If the calling thread's message queue does not have an associated window with the keyboard focus, the return value is NULL.

Remarks
 Even if GetFocus returns NULL, another thread's queue may be associated with a window that has the keyboard focus.
Use the GetForegroundWindow function to retrieve the handle to the window with which the user is currently working. You can associate your thread's message queue with the windows owned by another thread by using the AttachThreadInput function.


Джо   (2005-12-15 04:37:00) [2]

or Focused?


Джо   (2005-12-15 04:36:00) [3]

ActiveControl?


Наверх

Титульная страница Поиск, карта сайта Написать письмо