Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. SendMessage(*hChild, WM_COMMAND, 0, (LPARAM)((LPTSTR)"Соединение установлено"));
  2.  
  3. case WM_COMMAND:
  4. stttr = ((LPTSTR)(pcds->lpData));
  5. InvalidateRect(hChild, NULL, TRUE);
  6. break;
  7. case WM_PAINT:
  8. {
  9. HDC hdc = BeginPaint(hChild, &ps);
  10. TextOut(hdc, 10, 10, stttr, 50);//вывод текста
  11.  
  12. EndPaint(hChild, &ps);
  13. }
  14. break;
  15.  
  16. COPYDATASTRUCT* pcds = (COPYDATASTRUCT*)lParam;
  17. LPTSTR stttr = "Ожидание";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement