Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

😆请求一个转发消息给所有好友的功能 #93

Open
yipyeukyi opened this issue Mar 2, 2022 · 2 comments
Open

😆请求一个转发消息给所有好友的功能 #93

yipyeukyi opened this issue Mar 2, 2022 · 2 comments

Comments

@yipyeukyi
Copy link

yipyeukyi commented Mar 2, 2022

实际业务中有向成员转发通知的需求,一个一个点过去很费时间,目前的想法是在转发界面添加一个能全选复选框的功能。

@yipyeukyi
Copy link
Author

貌似复选控件可以直接设置为ture状态。

@yipyeukyi
Copy link
Author

yipyeukyi commented Mar 13, 2022

//该部分已经通过以下部分实现
//该取消按钮为全选
contact_select_form_ui.cpp

bool ContactSelectForm::OnBtnCancelClick(ui::EventArgs* param)
{

        for (auto& it : tree_node_ver_) {
            for (int i = 0; i < it->GetCount(); i++) {
                auto listitem = (ContactListItemUI*)(it->GetItemAt(i));
                UTF8String id = listitem->GetUTF8DataID();
                ui::CheckBox* checkbox = (ui::CheckBox*)listitem->FindSubControl(L"checkbox");
                if (!checkbox->IsSelected()) {
                checkbox->Selected(true, true);

                listitem->Selected(true, true);

                OnCheckBox(id, listitem->IsTeam(), checkbox->IsSelected());
                }
            }
        }
return true;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants