i've created a window with an edit box and a button key. I want the window to do different things when the user types something in the edit box and press's the button. The edit box is called chapter and the button is called hFind. The problem is that my code doesn't work. In wm_command: i'm trying to make it so that if the user types test and clicks find a message box will appear but on my attempt at it there was an error.
This brings up an compilation error but does anybody know the proper way to do this.Code:case WM_COMMAND:
if (HIWORD(wParam) == BN_CLICKED);
{
if (LOWORD(wParam) == 1 )
{
if (hChapter == "test")
{
MessageBox("Your input", "You typed test.", NULL, NULL);
}