Hello Coders
I have created a window using Win32 API,c++ with single menu option Services. I have programmed the working of Service option.
Problem:- When I display the services on the window, it displays contents but paints the Window actually.
But I want that when I click the menu option it should display all the services as they are displayed on the Task Manager and can be copied too.
Please answer me regarding this problem only.
Thank you in Anticipation
[Update]
The code for creating a Edit control is here.
case WM_CREATE:
hWndEdit=CreateWindow(_T("EDIT"), NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL |
WS_VSCROLL | ES_LEFT | ES_MULTILINE |
ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE|ES_USER_PRESENT,
0, 0, 0, 0, hwnd,
0,
hInst,
NULL);
then to display on window I used
case WM_PAINT:
case WM_PAINT:
PAINTSTRUCT ps;
SendMessage(hwnd, WM_SETTEXT, 100, (LPARAM) e1[m].lpstring1);
TextOut (hDC,
10,
10,
(LPSTR)"hello coders",
10);
EndPaint (hwnd, &ps);
I think it is enough to answer.
I think there should be something change in the third argument in the create Window. Is it?
What I have tried:
I actually tried many changes to program for edit control but still not lucky.
Now I have No where to go.