case WM_COMMAND: switch (LOWORD (wParam)) { case IDC_PLAY: static char textmessage[256]; SendMessage((HWND)lParam,WM_GETTEXT,(WPARAM)256,(LPARAM)textmessage); MessageBox(NULL,textmessage,NULL,NULL); if(textmessage=="PLAY") { SetWindowText((HWND)lParam,"Stop"); }
if(textmessage=="PLAY")
if( strncmp(textmessage, "PLAY", 4) == 0 )
CString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)