Re: [BLACKBOX] Screen control (was dawn simulator alarm)
----boundary-LibPST-iamunique-2088771559_-_-
Content-type: text/plain
Alexander,
Code copied and stored for later reference.
Audrey,
That should be enough for you to solve your problem.
-Doug
On 11/29/2010 8:10 PM, Alexander Iljin wrote:
Hello!
DGD> Fine but how about the details?
DGD> I assume you mean to use WinApi?
Yes, I do.
DGD> What are the exact calls?
Let me refer you to my example of a WinApi-based BlackBox
application in this tutorial:
http://oberoncore.ru/wiki/blackbox/make_exe
The MoveWindow application will not be as useful in fullscreen mode,
but I think you'll be able to cut the unnecessary part by yourself,
just remove the MoveMainWindow procedure.
There are only two changes you need to make to that code to make it
create a borderless maximized topmost window:
1. Locate WinApi.CreateWindowEx call near the end of the module.
Replace WinApi.WS_OVERLAPPEDWINDOW parameter with (WinApi.WS_POPUP +
WinApi.WS_VISIBLE + WinApi.WS_MAXIMIZE).
2. Delete the WinApi.ShowWindow call (it's right after the
CreateWindowEx call). It became unnecessary since we added the
WinApi.WS_VISIBLE flag, and in its exising version it would
de-maximize the window due to SW_SHOWDEFAULT parameter.
Alternatively, you can remove the WS_VISIBLE flag and keep the
ShowWindow call, but then you should replace SW_SHOWDEFAULT with
SW_SHOW.
Use Esc or Alt+F4 to terminate the application.
---=====---
Alexander
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-2088771559_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3MgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJcZm5pbFxmY2hh
cnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBOZXc7fX0NCntc
Y29sb3J0YmxccmVkMFxncmVlbjBcYmx1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