flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved]WIC+D2D1+LayeredWindow+headache

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 19 Aug 2021, 15:38
Finally it semitransparent by Normal Window...
Why Layered won't update itself then?..

I think I'll work around normal window then...
But I need performance benefits...


Description:
Filesize: 534.58 KB
Viewed: 3007 Time(s)

Capture.PNG


Post 19 Aug 2021, 15:38
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 19 Aug 2021, 16:07
OMG !!!
All I was needed is Size. Stupid Microsoft says if NULL it hold window size unchanged but it is bu...it!
After I added Size struc to my UpdateLayeredWindow it works just fine.

Thanks for watching Smile
Post 19 Aug 2021, 16:07
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1769
Roman 20 Aug 2021, 03:53
Good work!
У нас скоро будет fasm графический эквалайзер? Smile
Как будешь рисовать GUI под разные размеры экранов и управлять кнопками и sliders?
Post 20 Aug 2021, 03:53
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 20 Aug 2021, 06:00
Quote:

Как будешь рисовать GUI под разные размеры экранов и управлять кнопками и sliders?

A lot of ideas: D2D have its own layers to prepare buttons textures there and hold them on right positions. Clicks can be processed by ownerdraw (transparent) childwindows. For best size it is no problem to manipulate with stretch coeficients. Don't look at this rubbish texture it's just for testing windows shadow.
A lot of staff I cleared from render process as BeginPaint, SetWindowLong, etc. Window just flying on the screen, dynamic transparency no need of my attention (redrawing). This benefits we can have with LayeredWindows only. I fixed my hwndRenderTarget too, but it works with normal window only without transparency at all.
Post 20 Aug 2021, 06:00
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.