MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnInitDialog

Method OnInitDialog

WinArk/EnvironmentDlg.cpp:31–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31LRESULT CEnvironmentDlg::OnInitDialog(UINT, WPARAM, LPARAM, BOOL&) {
32 InitDynamicLayout();
33
34 CString text;
35 text.Format(L"Environment (PID: %u)", ::GetProcessId(m_hProcess));
36 SetWindowText(text);
37
38 m_List.Attach(GetDlgItem(IDC_LIST));
39 m_List.InsertColumn(0, L"Name", LVCFMT_LEFT, 210);
40 m_List.InsertColumn(1, L"Value", LVCFMT_LEFT, 300);
41 m_List.SetExtendedListViewStyle(LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER|LVS_EX_INFOTIP);
42
43 m_Vars = WinSys::Process::GetEnvironment(m_hProcess);
44 m_List.SetItemCount((int)m_Vars.size());
45 return 0;
46}
47
48LRESULT CEnvironmentDlg::OnCopy(WORD, WORD wID, HWND, BOOL&) {
49 int i = -1;

Callers

nothing calls this directly

Calls 2

AttachMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected