News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Recent posts

#31
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by zedd - April 22, 2025, 06:16:26 AM
Quote from: LordAdef on April 22, 2025, 06:10:43 AMI mean... it doesn't look that nice by my taste, but it a start
I had used it a few times myself. But not in orange.  :tongue:

My digitial alarm clock using 'skins3' as a guide is attached. Sorry for lack of comments there.

Beware. Clicking Exit places an icon in the notification area on the task bar and does not close the program. To completely close the program, right click the icon in the notification area of the task bar.  :cool:
#32
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by LordAdef - April 22, 2025, 06:10:43 AM
Quote from: zedd151 on April 22, 2025, 06:07:24 AMNothing really rings any bells for me.

There is however an example of creating a custom titlebar, etc. in the masm32 examples folder 'masm32\examples\exampl07\skins3', hutch style. It is also attached if you want to play with it.
Nice! I will check this one

I mean... it doesn't look that nice by my taste, but it a start
#33
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by LordAdef - April 22, 2025, 06:07:50 AM
Quote from: zedd151 on April 22, 2025, 05:57:44 AMJust for clarification LordAdef, what OS are you running?
System wide, or for one particular program that you are writing?
Hi Zedd,

I'm on win 11, but I need a inter OS solution.

OK, in the perfect world it wouldn't be such a hassle to have: invoke SetTitleBarColor, 0342466h
I am sure Microsoft wanted to torture us.... :dazzled:
#34
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by zedd - April 22, 2025, 06:07:24 AM
Nothing really rings any bells for me.

There is however an example of creating a custom titlebar, etc. in the masm32 examples folder 'masm32\examples\exampl07\skins3', hutch style. It is also attached if you want to play with it.
#35
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by LordAdef - April 22, 2025, 06:02:16 AM
Quote from: fearless on April 22, 2025, 05:31:08 AMIndirectly this is related to the topic: https://www.catch22.net/tuts/win32/custom-titlebar/

... override it to paint it in WM_NCPAINT ...

A third option is similar to the ModernUI_CaptionBar, where you create a control that emulates the titlebar and handles the drawing within itself and any buttons etc: https://github.com/mrfearless/ModernUI/tree/master/Controls/ModernUI_CaptionBar
Hi Fearless,
I've tried the  WM_NCPAINT  thing, the result is horrible. It paints on top of the buttons...

I will check  ModernUI_CaptionBar, thanks for the tip
#36
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by zedd - April 22, 2025, 05:57:44 AM
Just for clarification LordAdef, what OS are you running?
System wide, or for one particular program that you are writing?
#37
Windows Graphics Programming / Re: setting the Title bar colo...
Last post by fearless - April 22, 2025, 05:31:08 AM
Indirectly this is related to the topic: https://www.catch22.net/tuts/win32/custom-titlebar/

You can handle the Non Client area of a window, just like in the tutorial linked above, and override it to paint it in WM_NCPAINT event. But there might be a lot more to do there, been a while so cant recall if just painting a color rectangle in WM_NCPAINT would suffice, or if there is more to consider.

Might be other ways involving using DWM to extend the client area into the Non Client area and handle the top part yourself to make a fake titlebar.

A third option is similar to the ModernUI_CaptionBar, where you create a control that emulates the titlebar and handles the drawing within itself and any buttons etc: https://github.com/mrfearless/ModernUI/tree/master/Controls/ModernUI_CaptionBar
#38
Windows Graphics Programming / setting the Title bar color of...
Last post by LordAdef - April 22, 2025, 05:04:00 AM
Hi fellow Masmers!

I have no idea, but I reckon this is the place to ask this. Modertor, correct me if I'm wrong

I need to change the color of my Title bar window, or.. make my window dark style.

I don't know if Microsoft makes things like this just to torture us, but it shouldn't be that hidden.

Anyway, any help would be very appreciated!
Alex
#39
MASM64 SDK / Re: Masm64 SDK ignores "uses"
Last post by jj2007 - April 21, 2025, 09:35:12 PM
With an AMD:
AMD Athlon Gold 3150U with Radeon Graphics
*
pushing took 1109 ms
moving  took 1110 ms
nc pushing took 1140 ms
nc moving  took 1110 ms
pushing took 1125 ms
moving  took 1125 ms
nc pushing took 1140 ms
nc moving  took 1125 ms
pushing took 1125 ms
moving  took 1125 ms
nc pushing took 1140 ms
nc moving  took 1125 ms
pushing took 1125 ms
moving  took 1141 ms
nc pushing took 1140 ms
nc moving  took 1141 ms

In short: no difference, and the justification of this horrible ABI that "moving is faster than pushing" is bulls*it.
#40
MASM64 SDK / Re: Masm64 SDK ignores "uses"
Last post by zedd - April 21, 2025, 10:12:31 AM
Quote from: jj2007 on August 29, 2023, 11:27:19 PMIntel(R) Core(TM) i5-2450M CPU @ 2.50GHz
*
pushing took 983 ms
moving  took 1139 ms
nc pushing took 1030 ms
nc moving  took 936 ms
pushing took 1045 ms
moving  took 1139 ms
nc pushing took 1014 ms
nc moving  took 952 ms
pushing took 998 ms
moving  took 1201 ms
nc pushing took 1014 ms
nc moving  took 936 ms
pushing took 967 ms
moving  took 1263 ms
nc pushing took 1030 ms
nc moving  took 951 ms

IMHO there should be a call, since we are talking about the best way to implement "uses rsi rdi". Anyway, it's an interesting result :cool:

Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
*
pushing took 594 ms
moving  took 610 ms
nc pushing took 593 ms
nc moving  took 610 ms
pushing took 593 ms
moving  took 625 ms
nc pushing took 594 ms
nc moving  took 578 ms
pushing took 610 ms
moving  took 609 ms
nc pushing took 594 ms
nc moving  took 594 ms
pushing took 609 ms
moving  took 609 ms
nc pushing took 610 ms
nc moving  took 593 ms
:biggrin:  I'm kinda bored atm.