本文整理汇总了C++中ChatPanel::GetOtherJid方法的典型用法代码示例。如果您正苦于以下问题:C++ ChatPanel::GetOtherJid方法的具体用法?C++ ChatPanel::GetOtherJid怎么用?C++ ChatPanel::GetOtherJid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ChatPanel
的用法示例。
在下文中一共展示了ChatPanel::GetOtherJid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnFrameDestroy
void ChatControlerFrame::OnFrameDestroy(wxCloseEvent &event) {
//ChatPanel *chat(it->second);
if (m_controler) {
wxNotebook *panel = dynamic_cast<wxNotebook *>(*(GetChildren().begin()));
if (panel)
for(int i = panel->GetPageCount(); --i >= 0; ) {
ChatPanel *chat = dynamic_cast<ChatPanel *>(panel->GetPage(i));
if (chat)
m_controler->RemoveReference(chat->GetOtherJid());
}
m_controler->NullTabs();
}
//ChatPanel *panel = dynamic_cast<ChatPanel *>(*(GetChildren().begin()));
//if (panel){
// PRU_LOG2("OnFrameDestroy", panel->GetOtherJid().Str());
// //good
// if (m_comtroler)
// m_controler->RemoveReference(panel->GetOtherJid());
//} else{
// //bad
//}
//PRU_LOG2("OnFrameDestroy", others_jid.Str());
/*if (m_controler)
m_controler->RemoveReference(others_jid);*/
event.Skip();
}
示例2: OnRightClick
void ChatControlerFrame::OnRightClick(wxMouseEvent& event) {
if (m_controler) {
wxNotebook *tabs = m_controler->GetTabs();
if (tabs) {
int tab = tabs->HitTest(event.GetPosition());
if (tab != wxNOT_FOUND) {
ChatPanel *chat = dynamic_cast<ChatPanel *>(tabs->GetPage(tab));
if (chat) {
m_controler->RemoveReference(chat->GetOtherJid());
tabs->DeletePage(tab);
}
}
}
}
}