Re: win11 dark scrollbars

marc <[email protected]>
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
You just need the HWND of your scintilla window...

SetWindowTheme(wnd, is_dark ? L"DarkMode_Explorer" : nullptr, nullptr);

On Sunday, July 28, 2024 at 11:59:33 AM UTC+1 SRD wrote:

> Neil, that's interesting. I'm running the latest win11. I know this is 
> probably outside the scope of Scintilla, but I don't know who else might 
> know. In Notepad++ scrollbars look like the first image below (and they are 
> part of the scintilla component), in a regular edit window, they always 
> look like the 2nd image. I'd like to "force" the edit control's scrollbar 
> to look like the Notepad++ scrollbar. Is there a StyleHook being called on 
> scintilla somewhere? I was hoping there was some DWM call or something to 
> make this work. I was able to finally get dark captionbars using new DWM 
> calls. Hoping there was something like that for scrollbars too.
>
> [image: darksb3.png] 
> Dark
> [image: lightsb.png]
> Light
>
>
>
> On Sat, Jul 27, 2024 at 4:33 PM 'Neil Hodgson' via scintilla-interest <
> [email protected]> wrote:
>
>> SRD:
>>
>> > Or where that might be located in scintilla itself?
>>
>> Scintilla just uses standard Windows scroll bars which are drawn 
>> completely by Windows. Their presence is determined by the application 
>> specifying the scrollbar request flags when creating a "Scintilla" window: 
>> WS_VSCROLL | WS_HSCROLL.
>>
>> Neil
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "scintilla-interest" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/scintilla-interest/1bFA_4l_2Xw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/scintilla-interest/3A533F1B-7633-45CF-980D-1F02DEDBDA73%40me.com
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/ff76caeb-be14-4c27-b17f-45df66059e07n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.