1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
HWND hwnd=::CreateWindow(
TEXT("EDIT"), // Class name
NULL, // Window text
dwEditStyle, // Window style
rect.left, // x coordinate of the upper-left corner
rect.top, // y coordinate of the upper-left corner
rect.Width(), // Width of the edit control window
rect.Height(), // Height of the edit control window
pParent->GetSafeHwnd(), // Window handle of parent window
(HMENU)(UINT)(nID), // Control identifier
AfxGetInstanceHandle(), // Instance handle
NULL); // Specify NULL for this parameter when
// creating a control |