flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
revolution 28 Jul 2014, 19:09
upsurt wrote: I quess |
|||
![]() |
|
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? |
|||
![]() |
|
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. |
|||
![]() |
|
AsmGuru62 28 Jul 2014, 21:49
So, the main question is: why not use a window?
|
|||
![]() |
|
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. |
|||
![]() |
|
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.
|
|||
![]() |
|
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.
|
|||
![]() |
|
typedef 08 Aug 2014, 13:05
revolution wrote:
Or just create a message loop. |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.