support code-json
This commit is contained in:
parent
6d2cee6139
commit
3d2a3dab0b
|
@ -496,6 +496,13 @@ std::wstring CDlgMgr::export_config(bool *ok, bool used_in_code, int code_ver)
|
|||
child = known_file_util::create_jsonW();
|
||||
list_.GetItemText(i, 1, text, _countof(text) - 1);
|
||||
::SendMessageW(GetParent()->m_hWnd, WM_GET_TEST_ITEM_NAME, (WPARAM)text, (LPARAM)&item);
|
||||
if (item.name.empty())
|
||||
{
|
||||
child->release();
|
||||
jsn->release();
|
||||
|
||||
return L"\u6D4B\u8BD5\u9879\u76EE \u201C" + std::wstring(text) + L"\u201D \u4E0D\u5B58\u5728\u4E8E\u914D\u7F6E\u5E93\u4E2D\u3002";
|
||||
}
|
||||
child->set_value(L"name", item.name.c_str());
|
||||
if (!used_in_code)
|
||||
{
|
||||
|
|
|
@ -96,7 +96,7 @@ BOOL CscannercheckDlg::OnInitDialog()
|
|||
|
||||
items_ = new CDlgItemMgr(this);
|
||||
items_->Create(IDD_TEST_ITEM, this);
|
||||
add_page(L"\u6D4B\u8BD5\u9879\u76EE\u7BA1\u7406", items_);
|
||||
add_page(L"\u6D4B\u8BD5\u9879\u76EE\u5E93\u7BA1\u7406", items_);
|
||||
items_->ShowWindow(SW_HIDE);
|
||||
|
||||
on_test_item_changed(0, 0);
|
||||
|
|
Loading…
Reference in New Issue