Skip to content

Commit

Permalink
Add self to credits; about box etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Feb 20, 2016
1 parent 8c3f536 commit 5f4322c
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 16 deletions.
17 changes: 15 additions & 2 deletions Source/about_dlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,30 @@ HWND g_hwnd;
BOOL CALLBACK About_Box( HWND hdwnd, UINT message, WPARAM wparam, LPARAM lparam ) {

static BOOL email_inrange; // Is the mouse in range of the static email control box
static BOOL email2_inrange; // Is the mouse in range of the static email control box
static BOOL www_inrange; // Is the mouse in range of the static www control box

switch( message ) {
case WM_PAINT:
set_static_text("[email protected]", IDC_EMAIL_LINK2, email2_inrange);
set_static_text( "[email protected]", IDC_EMAIL_LINK, email_inrange );
set_static_text( "Project Website", IDC_WWW_LINK, www_inrange );
return 0; // WM_PAINT must return 0

case WM_INITDIALOG:
g_hwnd = hdwnd; // set the global handle for support functions
SetDlgItemText( g_hwnd, IDC_VERSION, INCREDIMAIL_CONVERTER_VERSION );
{
char buf[1024];
GetDlgItemText(g_hwnd, IDC_TITLE, buf, 1024);
strcat_s(buf, 1024, " ");
strcat_s(buf, 1024, INCREDIMAIL_CONVERTER_VERSION);
SetDlgItemText( g_hwnd, IDC_TITLE, buf );
}
return 1;

case WM_MOUSEMOVE:
email_inrange = in_range( IDC_EMAIL_LINK, lparam );
email2_inrange = in_range(IDC_EMAIL_LINK2, lparam);
www_inrange = in_range( IDC_WWW_LINK, lparam );
SendMessage( g_hwnd, WM_PAINT, 0, 0 );
InvalidateRect( g_hwnd, NULL, FALSE);
Expand All @@ -39,9 +48,13 @@ static BOOL www_inrange; // Is the mouse in range of the static www control b
case IDC_EMAIL_LINK:
ShellExecute(NULL, TEXT("open"), "mailto:[email protected]", NULL, NULL, SW_SHOWNORMAL);
return 1;

case IDC_EMAIL_LINK2:
ShellExecute(NULL, TEXT("open"), "mailto:[email protected]", NULL, NULL, SW_SHOWNORMAL);
return 1;

case IDC_WWW_LINK:
ShellExecute(NULL, TEXT("open"), "http://code.google.com/p/incredimail-converter-reynardware/", NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, TEXT("open"), "https://github.com/smowton/incredimail-converter-reynardware", NULL, NULL, SW_SHOWNORMAL);
return 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/about_dlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define __ABOUT_DLG__

// VERSION*****************************************
#define INCREDIMAIL_CONVERTER_VERSION "v0.53"
#define INCREDIMAIL_CONVERTER_VERSION "CS release 1 (based on v0.53)"
//*************************************************

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion Source/increadimail_convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// The Initial Developer of the Original Code is David P. Owczarski, created March 20, 2009
//
// Contributor(s):
// Contributor(s): Christopher Smowton <[email protected]>
//
//************************************************************************************************

Expand Down
2 changes: 1 addition & 1 deletion Source/incredimail_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// The Initial Developer of the Original Code is David P. Owczarski, created March 20, 2009
//
// Contributor(s):
// Contributor(s): Christopher Smowton <[email protected]>
//
//************************************************************************************************
#define _CRT_SECURE_NO_WARNINGS // remove the new mircosoft security warnings
Expand Down
3 changes: 2 additions & 1 deletion Source/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define IDC_WWW_LINK 1027
#define IDC_TITLE 1028
#define IDC_VERSION 1029
#define IDC_EMAIL_LINK2 1029
#define IDC_RADIO1 1030
#define IDC_EXPORT_FILE 1030
#define IDC_RADIO2 1031
Expand All @@ -45,7 +46,7 @@
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 132
#define _APS_NEXT_RESOURCE_VALUE 134
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1036
#define _APS_NEXT_SYMED_VALUE 101
Expand Down
23 changes: 14 additions & 9 deletions Source/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ END

IDD_DIALOG1 DIALOGEX 0, 0, 293, 302
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "ReynardWare Incredimail Converter"
CAPTION "Incredimail Converter"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "Convert",IDOK,7,281,50,14
Expand Down Expand Up @@ -84,17 +84,17 @@ BEGIN
RTEXT "",IDC_OVERALL_PERCENT,205,251,79,8,NOT WS_VISIBLE
END

IDD_ABOUT DIALOGEX 0, 0, 181, 95
IDD_ABOUT DIALOGEX 0, 0, 181, 101
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,65,74,50,14
LTEXT "Incredimail Converter",IDC_TITLE,47,10,69,8
LTEXT "By",IDC_STATIC,85,25,9,8,SS_NOTIFY
LTEXT "v0.3",IDC_VERSION,122,10,52,8
CTEXT "[email protected]",IDC_EMAIL_LINK,49,41,87,8,SS_NOTIFY
CTEXT "Project Website",IDC_WWW_LINK,64,56,56,8,SS_NOTIFY
DEFPUSHBUTTON "OK",IDOK,65,80,50,14
CTEXT "Incredimail Converter",IDC_TITLE,7,10,167,18
LTEXT "By",IDC_STATIC,85,28,9,8,SS_NOTIFY
CTEXT "[email protected]\r\[email protected]",IDC_EMAIL_LINK,47,38,87,8,SS_NOTIFY
CTEXT "Project Website",IDC_WWW_LINK,63,63,56,8,SS_NOTIFY
CTEXT "[email protected]",IDC_EMAIL_LINK2,46,51,87,8,SS_NOTIFY
END


Expand All @@ -119,7 +119,7 @@ BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 174
TOPMARGIN, 7
BOTTOMMARGIN, 88
BOTTOMMARGIN, 94
END
END
#endif // APSTUDIO_INVOKED
Expand All @@ -145,6 +145,11 @@ BEGIN
0
END

IDD_ABOUT AFX_DIALOG_LAYOUT
BEGIN
0
END

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

Expand Down
2 changes: 1 addition & 1 deletion Source/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// The Initial Developer of the Original Code is David P. Owczarski, created March 20, 2009
//
// Contributor(s):
// Contributor(s): Christopher Smowton <[email protected]>
//
//************************************************************************************************

Expand Down

0 comments on commit 5f4322c

Please sign in to comment.