Skip to content

Commit

Permalink
Added more iteration options
Browse files Browse the repository at this point in the history
  • Loading branch information
corndog2000 committed Aug 18, 2019
1 parent 4dee863 commit 6f645e9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
48 changes: 40 additions & 8 deletions MandelbrotCpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,34 +684,66 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
switch (wmId)
{
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
{
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
}
break;
case ID_ALGORITHM_MANDELBROT:
{
useMandelbrotMath = true;
resetZoom(hWnd);
recalculate(hWnd);
updateMenuChecks(hWnd);
}
break;
break;
case ID_ALGORITHM_JULIA:
{
useMandelbrotMath = false;
resetZoom(hWnd);
recalculate(hWnd);
updateMenuChecks(hWnd);
}
break;
break;
case ID_FILE_RESETZOOM:
{
resetZoom(hWnd);
recalculate(hWnd);
break;
}
break;
case ID_FILE_SAVEIMAGE:
{
saveBitmap(hWnd);
break;
}
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
{
DestroyWindow(hWnd);
}
break;
case ID_MAXITERATIONS_3:
{
maxIteration = 3;
recalculate(hWnd);
}
break;
case ID_MAXITERATIONS_5:
{
maxIteration = 5;
recalculate(hWnd);
}
break;
case ID_MAXITERATIONS_10:
{
maxIteration = 10;
recalculate(hWnd);
}
break;
case ID_MAXITERATIONS_15:
{
maxIteration = 15;
recalculate(hWnd);
}
break;
case ID_MAXITERATIONS_25:
{
maxIteration = 25;
Expand Down
Binary file modified MandelbrotCpp.rc
Binary file not shown.
7 changes: 6 additions & 1 deletion resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
#define ID_MAXITERATIONS_1000000 32779
#define ID_MAXITERATIONS_25 32780
#define ID_MAXITERATIONS_50 32781
#define ID_ZOOMLEVEL 32782
#define ID_MAXITERATIONS_15 32783
#define ID_MAXITERATIONS_10 32784
#define ID_MAXITERATIONS_5 32785
#define ID_MAXITERATIONS_3 32786
#define IDC_STATIC -1

// Next default values for new objects
Expand All @@ -31,7 +36,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32782
#define _APS_NEXT_COMMAND_VALUE 32787
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 111
#endif
Expand Down

0 comments on commit 6f645e9

Please sign in to comment.