26 static RECT MinimumSize = { -1, -1, -1, -1 };
28 static INT_PTR CALLBACK PhpInformationDlgProc(
39 PWSTR
string = (PWSTR)lParam;
44 SetDlgItemText(hwndDlg,
IDC_TEXT,
string);
57 if (MinimumSize.left == -1)
65 MapDialogRect(hwndDlg, &rect);
70 SetProp(hwndDlg, L
"LayoutManager", (HANDLE)layoutManager);
71 SetProp(hwndDlg, L
"String", (HANDLE)
string);
81 RemoveProp(hwndDlg, L
"String");
82 RemoveProp(hwndDlg, L
"LayoutManager");
87 switch (LOWORD(wParam))
91 EndDialog(hwndDlg, IDOK);
101 editControl = GetDlgItem(hwndDlg,
IDC_TEXT);
102 SendMessage(editControl, EM_GETSEL, (WPARAM)&selStart, (LPARAM)&selEnd);
103 buffer = (PWSTR)GetProp(hwndDlg, L
"String");
105 if (selStart == selEnd)
109 Edit_SetSel(editControl, 0, -1);
113 string.Buffer = buffer + selStart;
114 string.Length = (selEnd - selStart) * 2;
118 SetFocus(editControl);
125 { L
"Text files (*.txt)", L
"*.txt" },
126 { L
"All files (*.*)", L
"*.*" }
162 PhShowStatus(hwndDlg, L
"Unable to create the file", status, 0);
190 _In_ HWND ParentWindowHandle,
198 PhpInformationDlgProc,