से पाठ जाओ मैं इस कोशिश की:एक संपादन नियंत्रण
int editlength;
int buttonid = 3324; // id to button, the numbers dont mean anything
int editid = 5652; // id to edit
LPTSTR edittxt;
HWND button; // created in wWinmain as a button
HWND edit; // created in wWinMain as an edit control
// LRESULT CALLBACK WindowProc
switch(uMsg)
{
case WM_COMMAND:
if(wParam == buttonid)
{
filedit = GetDlgItem(hwnd, editid); // I tried with and without this
editlength = GetWindowTextLength(filedit);
GetWindowText(filedit, edittxt, editlength);
MessageBox(hwnd, edittxt, L"edit text", 0);
}
break;
}
लेकिन मैं संदेश बॉक्स में कोई पाठ नहीं दिख रहा है मिलता है।
धन्यवाद लेकिन मुझे लगता है कि स्वीकृत उत्तर @jonathan पर जाना चाहिए क्योंकि वह पहले मिला था :) –