Skip to content

Commit

Permalink
Added File New
Browse files Browse the repository at this point in the history
  • Loading branch information
jasecoulls committed Oct 15, 2023
1 parent fc7ac46 commit 21a84c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions LogBazooka/LogBazooka.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
case IDM_SAVE:
SaveLog(hLogEdit, hThisWnd);
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
case IDM_FILE_NEW:
ClearLog(hLogEdit);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
Expand Down
Binary file modified LogBazooka/LogBazooka.rc
Binary file not shown.
2 changes: 1 addition & 1 deletion LogBazooka/LogRoutines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
void ClearLog(HWND hEdit)
{
// Clear the log
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)L"LogBazooka - Ready...");
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)L"LogBazooka - Ready...\n");

}

Expand Down
3 changes: 2 additions & 1 deletion LogBazooka/Resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define IDI_SMALL 108
#define IDC_LOGBAZOOKA 109
#define IDR_MAINFRAME 128
#define IDM_FILE_NEW 32773
#define IDC_STATIC -1

// Next default values for new objects
Expand All @@ -21,7 +22,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32773
#define _APS_NEXT_COMMAND_VALUE 32777
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
Expand Down

0 comments on commit 21a84c0

Please sign in to comment.