Skip to content

Commit

Permalink
Added an icon
Browse files Browse the repository at this point in the history
  • Loading branch information
RadAd committed Sep 28, 2022
1 parent bb7ad52 commit b2f6568
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RadWndResizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#include <tchar.h>
#include "HandlePtr.h"

// TODO
// Needs a tray icon
// Settings for hotkey
// Move window immediatley while menu is still showing

#define HK_MENU 1

#define APPNAME TEXT("RadWndResizer")
Expand Down
81 changes: 81 additions & 0 deletions RadWndResizer.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (United Kingdom) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_APP ICON "res\\RadWndResizer.ico"

#endif // English (United Kingdom) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (Australia) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
#pragma code_page(1252)

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED

#endif // English (Australia) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

7 changes: 7 additions & 0 deletions RadWndResizer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="HandlePtr.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="Window.h" />
<ClInclude Include="Windowxx.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="RadWndResizer.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="res\RadWndResizer.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>
Binary file added res/RadWndResizer.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions resource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by RadWndResizer.rc
//
#define IDI_APP 101

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

0 comments on commit b2f6568

Please sign in to comment.