For example, somebody might ask me, "I have a window, and I want to make sure it's always on top no matter what. Is there a window style I can set so that nobody ever covers this window?" Oh, what if two programs did this, and they use this bit one over the other? You now have two windows trying to occupy the same space, and somebody is going to lose.
Some people decide to "fix" this problem by saying, "well, I will run a timer, and every second I will check to see if somebody's covering me, and if somebody is covering me, I'm going to push them out of the way."
Now, that works, until two programs do this. And I think you can see what is happening: you have two programs, each of which, once a second, take turns, as it is in charge. We have seen this happen in programs that people pay for; where both of them decide that they should be the one, and work really hard at it. And as a result, you sit there and you install both of these programs, and you watch your screen. And you see that your icons change to the icon of one program, and then to the other one, and then to the first, and then back and forth. And it does this for about 15 seconds; your machine is completely unusable. And then finally one of them puts a big message box saying, "Hey, there's a mean guy around here!"
Tamplier писал(а):У меня небольшие проблемы с английским, так что если не правильно понял - поправьте. Вы намекаете на то, что сделать окно, которое будет поверх ДЗ нельзя, так?
IIIypuk писал(а):З.Ы. Я кстати где-то видел dll`эшку, которая как раз предназначалась для того, чтоб отключать горячие клавиши Window (такие как Alt+Tab, Ctrl+Alt+Delete, Win+L и т.д.).
Option Explicit
Private Declare Function CtrlAltDel_Enable_Disable Lib "Block.dll" (ByVal bEnableDisable As Boolean) As Integer
Private Sub Form_Click()
Static tmp As Boolean
CtrlAltDel_Enable_Disable tmp
tmp = Not tmp
End Sub
IIIypuk писал(а):Проверил, все прекрасно работает:
- Код: Выделить всё
Option Explicit
Private Declare Function CtrlAltDel_Enable_Disable Lib "Block.dll" (ByVal bEnableDisable As Boolean) As Integer
Private Sub Form_Click()
Static tmp As Boolean
CtrlAltDel_Enable_Disable tmp
tmp = Not tmp
End Sub
truk писал(а):IIIypuk писал(а):Проверил, все прекрасно работает:
- Код: Выделить всё
Option Explicit
Private Declare Function CtrlAltDel_Enable_Disable Lib "Block.dll" (ByVal bEnableDisable As Boolean) As Integer
Private Sub Form_Click()
Static tmp As Boolean
CtrlAltDel_Enable_Disable tmp
tmp = Not tmp
End Sub
А как теперь разблокировать?
ACiDXX писал(а):VVitafresh, щёлкни ещё разок
VVitafresh писал(а):ACiDXX писал(а):VVitafresh, щёлкни ещё разок
Пальцами по воздуху?
IIIypuk писал(а):Это тож к цитатам надо =)
По форме щелкни еще раз
VVitafresh писал(а):IIIypuk, а ты кликни раз по форме для блокировки Ctrl+Alt+Del и закрой форму.
Как теперь разблокировать?
VVitafresh писал(а):IIIypuk, а ты кликни раз по форме для блокировки Ctrl+Alt+Del и закрой форму.
Как теперь разблокировать?
444 сообщение
Сейчас этот форум просматривают: AhrefsBot, Google-бот и гости: 8