diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-02 13:06:20 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-02 13:06:20 +0000 |
commit | 35ded165ba1c21cd526191a47101da56c101d1a9 (patch) | |
tree | f86b9560ab673b013da05a35536d81fb98935202 /tipper/popwin.cpp | |
parent | 06ddd6b98d4b76bdc8ba20d4b2fd63211f92c93d (diff) |
added user id to status bar tips
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@104 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r-- | tipper/popwin.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 4311789..fadbfe3 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -69,6 +69,19 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa a2t(pwd->clcit.proto, pwd->swzTitle, TITLE_TEXT_LEN); + TCHAR uid_buff[256], uid_name_buff[256]; + if(uid(0, pwd->clcit.proto, uid_buff, 256) && uid_name(pwd->clcit.proto, uid_name_buff, 253)) { // 253 to leave room for ': '
+ _tcscat(uid_name_buff, _T(": ")); +
+ pwd->rows = (RowData *) realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1)); + + pwd->rows[pwd->row_count].swzLabel = _tcsdup(uid_name_buff); + pwd->rows[pwd->row_count].swzValue = _tcsdup(uid_buff); + pwd->rows[pwd->row_count].value_newline = false; + pwd->rows[pwd->row_count].line_above = false; + pwd->row_count++; + } + WORD status = CallProtoService(pwd->clcit.proto, PS_GETSTATUS, 0, 0); char *strptr = (char *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)status, (LPARAM)0); if(strptr) { |