From 0c99b116f722a4609c29a4fbda986cd1e2c6790a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 17 Jul 2010 23:34:51 +0300 Subject: modified: commonheaders.h modified: init.cpp new file: m_msg_buttonsbar.h modified: ui.cpp --- ui.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ui.cpp') 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 -- cgit v1.2.3