Re: [BLACKBOX] Screen control (was dawn simulator alarm)

From: [at]} <Alexander>
Date: Tue, 30 Nov 2010 10:10:48 +0600

----boundary-LibPST-iamunique-2049113651_-_-
Content-type: text/plain

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-2049113651_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtcc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