MCPcopy Create free account
hub / github.com/DentonW/DevIL / AboutDlgProc

Function AboutDlgProc

DevIL/examples/windows_example/WindowsTest.cpp:1093–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091
1092
1093INT_PTR APIENTRY AboutDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
1094{
1095 switch (message)
1096 {
1097 case WM_INITDIALOG:
1098 {
1099 int i;
1100 ILenum ilError;
1101 TCHAR VersionNum[256];
1102
1103 wsprintf(VersionNum, L"Num: %d", ilGetInteger(IL_VERSION_NUM));
1104
1105 SetDlgItemText(hDlg, IDC_ABOUT_VENDOR, ilGetString(IL_VENDOR));
1106 SetDlgItemText(hDlg, IDC_ABOUT_VER_STRING, ilGetString(IL_VERSION_NUM));
1107 SetDlgItemText(hDlg, IDC_ABOUT_VER_NUM, VersionNum);
1108
1109 for (i = 0; i < 6; i++) {
1110 ilError = ilGetError();
1111 if (ilError == IL_NO_ERROR)
1112 break;
1113 SetDlgItemText(hDlg, IDC_ERROR1+i, iluErrorString(ilError));
1114 }
1115
1116 return (TRUE);
1117 }
1118 break;
1119
1120 case WM_COMMAND:
1121 {
1122 if (LOWORD(wParam) == IDOK)
1123 EndDialog(hDlg, TRUE);
1124 if (LOWORD(wParam) == IDCANCEL)
1125 EndDialog(hDlg, FALSE);
1126 }
1127 break;
1128
1129 case WM_CLOSE:
1130 EndDialog(hDlg, TRUE);
1131 break;
1132 }
1133
1134 return FALSE;
1135}
1136
1137
1138INT_PTR APIENTRY PropertiesDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected