summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui.cpp b/ui.cpp
index 95065e7..8ea8424 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -18,11 +18,12 @@
int CreateButtons()
{
-/* CustomButtonData button;
- button.bIMButton = TRUE;
+ BBButton button = {0};
+ button.cbSize = sizeof(button);
button.pszModuleName = szModuleName;
- button.ptszTooltip = _T("Test button");
- CB_AddButton(0, (LPARAM)&button);
- CB_InitCustomButtons();*/
+ button.pszTooltip = "Test button";
+ button.bbbFlags = BBBF_ISPUSHBUTTON |BBBF_ISIMBUTTON;
+ button.dwDefPos = 100;
+ CallService(MS_BB_ADDBUTTON, 0, (WPARAM)&button);
return 0;
} \ No newline at end of file