LRESULT ChatCtrl::onCopyUserInfo(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { tstring sCopy; const OnlineUserPtr ou = client->findUser(Text::fromT(selectedUser)); if(ou) { sCopy = ou->getText(static_cast<uint8_t>(wID - IDC_COPY)); } if (!sCopy.empty()) WinUtil::setClipboard(sCopy); return 0; }