1.前言
公司的一个需求要实现界面上直接编辑列表实现对内容的保存,mfc的相关资料较多,直接使用win32没有,参考了mfc的相关方法,给出解决方案
2.解决
代码片段
INT_PTR CALLBACK MainWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
static HWND hlist, hsublist;
static HFONT hFont;
static int snitem = -1, snsubitem = -1;
static std::map<int, std::wstring> mapIndexValue;
auto setlistvalue = [&]