in MFC, i have a edit box, how to define the variable of the edit box??
please help. thank you.
in MFC, i have a edit box, how to define the variable of the edit box??
please help. thank you.
If you're using MSVC++, and the edit box is on a dialog box, then you could use the class wizard to add a member variable for you.
OR use this :
CEdit m_myEditControl;
>> the variable of the edit box
The HWND?
The int resouce ID? (ie 40001)
The #define ? (ie #define IDC_MY_EDIT 40001)
Mainly use the WS_CHILD style
Set the HWND PARENT (to the window or dilaog whos callback will get the msg's)
Cast the HMENU to the int resouce ID (or its hash define) ie (HMENU)IDC_MY_EDIT,
In the callback of the dialog or window that the HWND PARENT belongs to you can then process command msg's for IDC_MY_EDIT.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill