diff options
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |