// include necessary headers #includeThis example creates an AboutDialog using the Windows API and sets the version, copyright, author, website, and release date information. The dialog box is then shown and the program enters a message loop to handle user input. The package library for AboutDialog may differ depending on the GUI framework or library being used. In this example, we used the Windows API which is included in the Windows operating system. Other frameworks or libraries such as Qt, wxWidgets, or GTK may have their own implementation of AboutDialog with different functionalities and package libraries.int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Create an AboutDialog HWND hwnd = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_ABOUTBOX), NULL, AboutDialogProc); // Show the dialog box ShowWindow(hwnd, nCmdShow); // Message loop MSG msg; while (GetMessage(&msg, NULL, 0, 0)) { if (!IsDialogMessage(hwnd, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } // Exit program return (int)msg.wParam; } // AboutDialog callback function INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: // Set dialog box information SetDlgItemText(hDlg, IDC_VERSION, "1.0"); SetDlgItemText(hDlg, IDC_COPYRIGHT, "(C) 2021"); SetDlgItemText(hDlg, IDC_AUTHOR, "John Doe"); SetDlgItemText(hDlg, IDC_WEBSITE, "www.example.com"); SetDlgItemText(hDlg, IDC_RELEASE_DATE, "01/01/2021"); break; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return (INT_PTR)TRUE; } break; } return (INT_PTR)FALSE; }