Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: how do I put a button on a UI element? (Read 1867 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how do I put a button on a UI element?

Hi all,

I'm inexperienced in Windows programming so please bear with me

I'm trying to create a very simple UI element (for default UI); let's say a window with a single button. I've looked at the sample ui_element.cpp code in the SDK, which uses CWindowImpl, but it's not clear to me how I can add child window controls like buttons to my UI element. I guess using CDialogImpl and specifying a dialog resource template kinda fits the bill, but I'm not looking for a separate "pop-up" dialog, I want the controls to be part of the UI element.

Can anyone point me in the right direction here?

Many thanks in advance!