wait i'm confused. Below is my wm_create, and wm_command.
Code:
case WM_CREATE:
hChapter = CreateWindow ( "EDIT", "Search Here",
WS_CHILD | WS_VISIBLE |
WS_BORDER | ES_AUTOHSCROLL,
20, 180, 120, 20,
hWnd, (HMENU) 1,
hInstGlobal, NULL);
hFind = CreateWindow ( "BUTTON", "Find",
WS_CHILD | WS_VISIBLE |
BS_PUSHBUTTON,
150, 180, 140, 20,
hWnd, (HMENU) 1,
hInstGlobal, NULL);
return 0;
// If the user wants to close the application
case WM_COMMAND:
if (HIWORD(wParam) == BN_CLICKED);
{
if (LOWORD(wParam) == 1 )
{
if (hChapter == test)
{
MessageBox("Your input", "You typed test.", NULL, NULL);
}
else
{
}
}
}
return 0;
I'm trying to get the value for hChapter and make the computer do different inputs for it. Like if i type in "test" in the edit box and press find, the message box comes up saying "You typed test".