How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
Moderator: Moderator Team
How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
If anybody could help me, I need to know exactly how the Start button is added to the taskbar, so I can add another button, right next to the Start button.
-
- Posts: 531
- Joined: Thu Jan 10, 2013 6:17 pm
- Contact:
- Fraizeraust
- Posts: 234
- Joined: Thu Jan 05, 2017 11:46 am
- Location: Italy
- Contact:
Re: How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
If I'm not mistaken, the chunk of code responsible for initializing/displaying the Start button is the CStartButton class on traywnd.cpp file (from 138 to 259 line).
The class begins by setting up the correct size for the button, applying bold font to the text, enabling the theme procedure (so that the button can be themed based on the current theme style on ReactOS), loading the text string from resource by invoking LoadStringW() function based on system's locale and finally creating the button with CreateWindowEx(), among other things.
https://github.com/reactos/reactos/blob ... d.cpp#L138
The class begins by setting up the correct size for the button, applying bold font to the text, enabling the theme procedure (so that the button can be themed based on the current theme style on ReactOS), loading the text string from resource by invoking LoadStringW() function based on system's locale and finally creating the button with CreateWindowEx(), among other things.
https://github.com/reactos/reactos/blob ... d.cpp#L138
a.k.a. GeoB99 -- ReactOS Kernel developer -- My Wiki page
Re: How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
But how do I make it so that is shows next to the Start button?
Re: How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
https://github.com/reactos/reactos/blob ... US.rc#L187
Edit: that's bullshit. I thought that you meant to change the caption from start to next. My fault.
Re: How is the Start button created on the taskbar (or How do I add a button to the taskbar) ?
No, that's easy enough. I found it myself anyway. I just had to align it correctly based on the Y size of the Start button and then make sure program buttons don't draw behind the new button.
Who is online
Users browsing this forum: No registered users and 28 guests