diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-18 18:05:52 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-18 18:05:52 +0300 |
commit | 5017949ed6a24c623c895b02673d2ff5272fc7bf (patch) | |
tree | 883ddf8095bec612ae566aa72cf591511d96dced /ui.cpp | |
parent | 8ef72578611917675179230aec4a6956463ef39a (diff) |
modified: globals.h
modified: init.cpp
modified: ui.cpp
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -28,14 +28,22 @@ int CreateButtons() button.ptszTooltip = _T("Test button"); button.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISLSIDEBUTTON | BBBF_ISCHATBUTTON | BBBF_HIDDEN; button.dwDefPos = 500; - button.dwButtonID = 0x000001; - CallService(MS_BB_ADDBUTTON, 0, (WPARAM)&button); + button.dwButtonID = TEST_BUTTONID; + CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&button); button.bbbFlags -= BBBF_HIDDEN; for(list <JabberAccount*>::iterator p = Accounts.begin(); p != Accounts.end(); p++) { if((*p)->getJuickContact() != INVALID_HANDLE_VALUE) - CallService(MS_BB_SETBUTTONSTATE, LPARAM((*p)->getJuickContact()), (WPARAM)&button); + CallService(MS_BB_SETBUTTONSTATE, (WPARAM)(*p)->getJuickContact(), (LPARAM)&button); //add button for each juick contact in every jabber account } } return 0; +} + +int HandleTabsrmmButtonPressed(WPARAM w, LPARAM l) +{ + CustomButtonClickData *data = (CustomButtonClickData*)l; + if(data->dwButtonId != TEST_BUTTONID) + return 0; + return 0; }
\ No newline at end of file |