int MessageBox( HWND hWnd,
LPCTSTR lpText,
LPCTSTR lpCaption,
UINT uType
);
http://msdn.microsoft.com/library/de...messagebox.asp
to make it popup when you hit a button: do this in your winproc:
Code:
switch(msg)
{
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_BUTTON:
MessageBox(hwnd,"hey!!!","you",MB_OK);
break;
}
break;
}
to make it popup when the user closes:
Code:
switch(msg)
{
case WM_CLOSE:
case WM_DESTROY:
MessageBox(hwnd,"hey!!!","you",MB_OK);
break;
}
-edit-
and this belongs more in the win32 forum....