diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-17 18:08:33 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-17 18:08:33 +0300 |
commit | d9a35471323e0d41b6a0cb80e543214bfc297e5f (patch) | |
tree | 37ed3f6a10459582c96a659fa5c84f0740677f94 | |
parent | 81090063e2cfcf2d935101a71b0fd25a82290e6e (diff) |
modified: commonheaders.h
deleted: m_buttonbar.h
modified: ui.cpp
-rw-r--r-- | commonheaders.h | 1 | ||||
-rw-r--r-- | m_buttonbar.h | 54 | ||||
-rw-r--r-- | ui.cpp | 5 |
3 files changed, 3 insertions, 57 deletions
diff --git a/commonheaders.h b/commonheaders.h index fa1b354..8c01fb2 100644 --- a/commonheaders.h +++ b/commonheaders.h @@ -39,5 +39,4 @@ using std::list; #include "globals.h" #include "main.h" #include "utilities.h" -#include "m_buttonbar.h" #endif diff --git a/m_buttonbar.h b/m_buttonbar.h deleted file mode 100644 index 9be67e9..0000000 --- a/m_buttonbar.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef _BUTTONSBAR_H
-#define _BUTTONSBAR_H
-
-#define MIN_CBUTTONID 4000
-#define MAX_CBUTTONID 5000
-
-#define BBSF_IMBUTTON (1<<0)
-#define BBSF_CHATBUTTON (1<<1)
-#define BBSF_CANBEHIDDEN (1<<2)
-#define BBSF_NTBSWAPED (1<<3)
-#define BBSF_NTBDESTRUCT (1<<4)
-
-typedef struct _tagCustomButtonData
- {
- DWORD dwButtonOrigID; // id of button used while button creation and to store button info in DB
- char * pszModuleName; //module name without spaces and underline symbols (e.g. "tabsrmm")
-
- DWORD dwButtonCID;
- DWORD dwArrowCID; //only use with BBBF_ISARROWBUTTON flag
-
- TCHAR * ptszTooltip; //button's tooltip
-
- DWORD dwPosition; // default order pos of button, counted from window edge (left or right)
- int iButtonWidth; //must be 22 for regular button and 33 for button with arrow
- HANDLE hIcon; //Handle to icolib registred icon
- BOOL bIMButton,bChatButton;
- BOOL bCanBeHidden,bHidden,bAutoHidden,bDummy,bDisabled,bPushButton;
- BOOL bLSided,bRSided;
- BYTE opFlags;
- }CustomButtonData;
-
-static INT_PTR CB_ModifyButton(WPARAM wParam, LPARAM lParam);
-static INT_PTR CB_RemoveButton(WPARAM wParam, LPARAM lParam);
-static INT_PTR CB_AddButton(WPARAM wParam, LPARAM lParam);
-static INT_PTR CB_GetButtonState(WPARAM wParam, LPARAM lParam);
-static INT_PTR CB_SetButtonState(WPARAM wParam, LPARAM lParam);
-static void CB_GetButtonSettings(HANDLE hContact,CustomButtonData *cbd);
-
-void CB_WriteButtonSettings(HANDLE hContact,CustomButtonData *cbd);
-int sstSortButtons(const void * vmtbi1, const void * vmtbi2);
-
-void CB_DeInitCustomButtons();
-void CB_InitCustomButtons();
-void CB_InitDefaultButtons();
-void CB_ReInitCustomButtons();
-
-/* MinGW doesn't like this struct declatations below */
-void BB_UpdateIcons(HWND hdlg,struct TWindowData *dat);
-void BB_RefreshTheme(const TWindowData *dat);
-void CB_DestroyAllButtons(HWND hwndDlg,struct TWindowData *dat);
-void CB_DestroyButton(HWND hwndDlg,struct TWindowData *dat,DWORD dwButtonCID,DWORD dwFlags);
-void CB_ChangeButton(HWND hwndDlg,struct TWindowData *dat,CustomButtonData* cbd);
-
-#endif
@@ -18,10 +18,11 @@ int CreateButtons() { - CustomButtonData button; +/* CustomButtonData button; button.bIMButton = TRUE; button.pszModuleName = szModuleName; button.ptszTooltip = _T("Test button"); CB_AddButton(0, (LPARAM)&button); - CB_InitCustomButtons(); + CB_InitCustomButtons();*/ + return 0; }
\ No newline at end of file |