Hi.
I have a problem I cant find a solution to, since I am unable to describe the problem in a searchable way.
I make a hWnd for each contact the user has:
contact[atoi(rowC[0])].hWnd = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG4), hWnd, messengerBox);
messengerBox is defined like this.
BOOL CALLBACK messengerBox(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_COMMAND:
switch(LOWORD(wParam))
{
case WM_DESTROY:
//ShowWindow(???,SW_HIDE);
break;
}
break;
default:
return FALSE;
}
return TRUE;
}
I want the user to be able to hide the dialog - and also get the number of the struct character[] it is in, but I dont know how to get the hWnd, since it is dynamically stored in a variable.
Hope you understand! :)
Cheers.