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

Function BatchDlgProc

DevIL/examples/windows_example/WindowsTest.cpp:1324–1367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322
1323
1324INT_PTR APIENTRY BatchDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
1325{
1326 static TCHAR Dir[255], NewExt[255];
1327 static bool Recurse;
1328 static RECT Rect;
1329
1330 switch (message)
1331 {
1332 case WM_INITDIALOG:
1333 {
1334 wsprintf(Dir, L"");
1335 wsprintf(NewExt, L"tga");
1336 SetDlgItemText(hDlg, IDC_BATCH_DIR, Dir);
1337 SetDlgItemText(hDlg, IDC_BATCH_NEWEXT, NewExt);
1338 return TRUE;
1339 }
1340 break;
1341
1342 case WM_COMMAND:
1343 {
1344 if (LOWORD(wParam) == IDOK) {
1345 GetDlgItemText(hDlg, IDC_BATCH_DIR, Dir, 255);
1346 GetDlgItemText(hDlg, IDC_BATCH_NEWEXT, NewExt, 255);
1347 Recurse = IsDlgButtonChecked(hDlg, IDC_BATCH_CHECK1) == BST_CHECKED;
1348
1349 // Do shit here.
1350
1351 //BatchConv(Dir, NULL, NewExt, Recurse);
1352
1353 EndDialog(hDlg, TRUE);
1354 }
1355 if (LOWORD(wParam) == IDCANCEL) {
1356 EndDialog(hDlg, FALSE);
1357 }
1358 }
1359 break;
1360
1361 case WM_CLOSE:
1362 EndDialog(hDlg, TRUE);
1363 break;
1364 }
1365
1366 return FALSE;
1367}
1368
1369
1370bool GetPrevImage()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected