本文整理汇总了C++中CCtrlEdit::GetTextA方法的典型用法代码示例。如果您正苦于以下问题:C++ CCtrlEdit::GetTextA方法的具体用法?C++ CCtrlEdit::GetTextA怎么用?C++ CCtrlEdit::GetTextA使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCtrlEdit
的用法示例。
在下文中一共展示了CCtrlEdit::GetTextA方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRequestClick
void OnRequestClick(CCtrlButton*)
{
if (IDYES != MessageBox(NULL, TranslateT(szAskSendSms), PRODUCT_NAME, MB_YESNO))
return;
ptrA cc(m_cc.GetTextA()), number(m_login.GetTextA());
string password;
if (m_proto->Register(REG_STATE_REQ_CODE, string(cc), string(number), string(), password)) {
if (!password.empty()) {
MessageBox(NULL, TranslateT(szPasswordSet), PRODUCT_NAME, MB_ICONWARNING);
m_proto->setString(WHATSAPP_KEY_PASS, password.c_str());
}
else {
m_pw1.Enable(); // unblock sms code entry field
m_pw2.Enable();
}
}
}
示例2: OnRegisterClick
void OnRegisterClick(CCtrlButton*)
{
if (GetWindowTextLength(m_pw1.GetHwnd()) != 3 || GetWindowTextLength(m_pw2.GetHwnd()) != 3) {
MessageBox(NULL, TranslateT("Please correctly specify your registration code received by SMS"), PRODUCT_NAME, MB_ICONEXCLAMATION);
return;
}
char code[10];
GetWindowTextA(m_pw1.GetHwnd(), code, 4);
GetWindowTextA(m_pw2.GetHwnd(), code + 3, 4);
string password;
ptrA cc(m_cc.GetTextA()), number(m_login.GetTextA());
if (m_proto->Register(REG_STATE_REG_CODE, string(cc), string(number), string(code), password)) {
m_proto->setString(WHATSAPP_KEY_PASS, password.c_str());
MessageBox(NULL, TranslateT(szPasswordSet), PRODUCT_NAME, MB_ICONWARNING);
}
}
示例3: btnOk_OnClick
void btnOk_OnClick(CCtrlButton*)
{
m_proto->m_szInviteJids.clear();
// invite users from clist
for (MCONTACT hContact = db_find_first(m_proto->m_szModuleName); hContact; hContact = db_find_next(hContact, m_proto->m_szModuleName)) {
if (m_proto->isChatRoom(hContact))
continue;
if (HANDLE hItem = m_clc.FindContact(hContact)) {
if (m_clc.GetCheck(hItem)) {
ptrA jid(m_proto->getStringA(hContact, "ID"));
if (jid != NULL)
m_proto->m_szInviteJids.push_back((char*)jid);
}
}
}
ptrA tszText(m_entry.GetTextA());
if (tszText != NULL)
m_proto->m_szInviteJids.push_back(string(tszText));
}