Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Win32/64 C / C++ Skinning For Menus Using The Windows Api

Featured Replies

Posted

I see a few skins around the forum and I want to build my own skins with photoshop or some graphics program.


 


Example:


Question.jpg


 


 


Currently I have this written in win32/64 old school c / c++ using the windows api.


Question1.jpg


 


Basically I have an outter main window with a child window inside the main window and you can move it around and minimize it.


 


I want to create something like the above picture with buttons that are clickable and some check boxes.


 


So, the question is how do I map the pictures to the window and make the pictures clickable?


 


-Bit_Hacker


Edited by Bit_Hacker

  • 2 weeks later...

Not possible w/winapi.


 


You'll need to use DirectX, GDI, Qt, etc. In Qt you'd use a graphicsview, then make a .png of each button and draw those to widgets in a graphicsview. Many tuts.


If you want to check out an old example of doing similar with GDI, you can check my old project patchLib.

https://forum.tuts4you.com/topic/24901-patchlib-v3-release/

The download links are broken, but the last post I made has the latest version attached to the post.

I do not work on the project anymore, and it was more of a hobby project at the time. You can redo a lot of what it does better in GDI+ but at that time I was focused on keeping it GDI/DIB based. I do encourage you to look into GDI+ though if you plan to remake something similar, as it can do a lot more, easily, then GDI itself.

There are a lot of examples of GDI+ online too, such as on sides like CodeProject and so on.

If you do not need to stick with C/C++ as well, WPF is something to look into with C#. It uses GDI/Direct3D to create amazing UIs.

Edited by atom0s

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.