flat assembler
Message board for the users of flat assembler.
Index
> Windows > Draw Rectangle directly on the screen without a window? Goto page Previous 1, 2 |
Author |
|
revolution 28 Jul 2014, 19:09
upsurt wrote: I quess |
|||
28 Jul 2014, 19:09 |
|
upsurt 28 Jul 2014, 20:36
how about od drawing an transparent window (without border or anything) and just paint the rectangle on top of this window?
what do you think? |
|||
28 Jul 2014, 20:36 |
|
revolution 28 Jul 2014, 21:05
Using transparency is the usual technique used for non-rectangular windows. There are tutorials about such things dating back from the days of the original Win95.
If your window is going to be rectangular then there is no advantage to using transparency. Just use a normal window. |
|||
28 Jul 2014, 21:05 |
|
AsmGuru62 28 Jul 2014, 21:49
So, the main question is: why not use a window?
|
|||
28 Jul 2014, 21:49 |
|
upsurt 28 Jul 2014, 22:14
actually, I wanted to paint directly on the screen. so a window is not directly the same.
it works for me so far with point, line and rectangle ... but I get it only in black and have some trouble toremove it properly. |
|||
28 Jul 2014, 22:14 |
|
revolution 28 Jul 2014, 22:38
If you give your window the WS_EX_TOPMOST flag then you will be painting directly to the screen since it will obscure all windows behind it. The only difference between what you are doing and a WS_EX_TOPMOST window is that other windows with the WS_EX_TOPMOST flag (if you have any) could overlap it if they are higher in the Z-order.
|
|||
28 Jul 2014, 22:38 |
|
AsmGuru62 29 Jul 2014, 14:45
Also, if you set the window style to exclude borders and title - then it will be the same rectangle you just painted.
|
|||
29 Jul 2014, 14:45 |
|
typedef 08 Aug 2014, 13:05
revolution wrote:
Or just create a message loop. |
|||
08 Aug 2014, 13:05 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.