I have created a simple win 32 application..in which it has a textbox and a button in a dialog window..first when I created this..it didnt display the dialog window and then what I did is added the code below to handle the close(WM_CLOSE) of the dialog window...but I want to know, how to handle the button click event..
LRESULT WINAPI myProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if(message == WM_CLOSE )
{
PostQuitMessage(0);
}
return 0;
}
to call the above in my main pgm I used
SetWindowLong(hwnd,DWL_DLGPROC, (long)myProc)