SetWindowLong(hWnd, DWL_USER, (LONG)pPlugin);  pPlugin->m_hWndDialog = hWnd;
static BOOL onInitDialog(HWND hWnd, HWND hWndFocus, LPARAM lParam){  CPlugin * pPlugin = (CPlugin *)lParam;  assert(pPlugin != NULL);  if(pPlugin == NULL)    return TRUE;  char szString[512];  LoadString(hInst, IDS_TITLE, szString, sizeof(szString));  SetWindowText(hWnd, szString);  LoadString(hInst, IDS_INFO, szString, sizeof(szString));  SetDlgItemText(hWnd, IDC_STATIC_INFO, szString);  SetDlgItemText(hWnd, IDC_STATIC_INFOTYPE, (LPSTR)pPlugin->m_pNPMIMEType);  LoadString(hInst, IDS_LOCATION, szString, sizeof(szString));  SetDlgItemText(hWnd, IDC_STATIC_LOCATION, szString);  char contentTypeIsJava = 0;  if (NULL != pPlugin->m_pNPMIMEType) {    contentTypeIsJava = (0 == strcmp("application/x-java-vm",				     pPlugin->m_pNPMIMEType)) ? 1 : 0;  }    if(pPlugin->m_szPageURL == NULL || contentTypeIsJava)    LoadString(hInst, IDS_FINDER_PAGE, szString, sizeof(szString));  else    strncpy(szString, pPlugin->m_szPageURL,511); // defect #362738    SetDlgItemTextWrapped(hWnd, IDC_STATIC_URL, szString);  LoadString(hInst, IDS_QUESTION, szString, sizeof(szString));  SetDlgItemText(hWnd, IDC_STATIC_QUESTION, szString);  SetDlgItemText(hWnd, IDC_STATIC_WARNING, "");  if(!pPlugin->m_bOnline)  {    EnableWindow(GetDlgItem(hWnd, IDC_GET_PLUGIN), FALSE);    LoadString(hInst, IDS_WARNING_OFFLINE, szString, sizeof(szString));    SetDlgItemText(hWnd, IDC_STATIC_WARNING, szString);    SetDlgItemText(hWnd, IDC_STATIC_QUESTION, "");    return TRUE;  }  if((!pPlugin->m_bJava) || (!pPlugin->m_bJavaScript) || (!pPlugin->m_bSmartUpdate))  {    LoadString(hInst, IDS_WARNING_JS, szString, sizeof(szString));    SetDlgItemText(hWnd, IDC_STATIC_WARNING, szString);    return TRUE;  }  ShowWindow(GetDlgItem(hWnd, IDC_STATIC_WARNING), SW_HIDE);  RECT rc;  GetWindowRect(GetDlgItem(hWnd, IDC_STATIC_WARNING), &rc);  int iHeight = rc.bottom - rc.top;  GetWindowRect(hWnd, &rc);  SetWindowPos(hWnd, NULL, 0, 0, rc.right - rc.left, rc.bottom - rc.top - iHeight, SWP_NOZORDER | SWP_NOMOVE);  HWND hWndQuestion = GetDlgItem(hWnd, IDC_STATIC_QUESTION);  HWND hWndButtonGetPlugin = GetDlgItem(hWnd, IDC_GET_PLUGIN);  HWND hWndButtonCancel = GetDlgItem(hWnd, IDC_BUTTON_CANCEL);  POINT pt;  GetWindowRect(hWndQuestion, &rc);  pt.x = rc.left;  pt.y = rc.top;  ScreenToClient(hWnd, &pt);  SetWindowPos(hWndQuestion, NULL, pt.x, pt.y - iHeight, 0, 0, SWP_NOZORDER | SWP_NOSIZE);  GetWindowRect(hWndButtonGetPlugin, &rc);  pt.x = rc.left;  pt.y = rc.top;  ScreenToClient(hWnd, &pt);  SetWindowPos(hWndButtonGetPlugin, NULL, pt.x, pt.y - iHeight, 0, 0, SWP_NOZORDER | SWP_NOSIZE);  GetWindowRect(hWndButtonCancel, &rc);  pt.x = rc.left;  pt.y = rc.top;  ScreenToClient(hWnd, &pt);  SetWindowPos(hWndButtonCancel, NULL, pt.x, pt.y - iHeight, 0, 0, SWP_NOZORDER | SWP_NOSIZE);  if(pPlugin->m_bHidden)    SetForegroundWindow(hWnd);  return TRUE;}