-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|
@@ -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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
// | ||
//************************************************************************************************ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
||
|
@@ -119,7 +119,7 @@ BEGIN | |
LEFTMARGIN, 7 | ||
RIGHTMARGIN, 174 | ||
TOPMARGIN, 7 | ||
BOTTOMMARGIN, 88 | ||
BOTTOMMARGIN, 94 | ||
END | ||
END | ||
#endif // APSTUDIO_INVOKED | ||
|
@@ -145,6 +145,11 @@ BEGIN | |
0 | ||
END | ||
|
||
IDD_ABOUT AFX_DIALOG_LAYOUT | ||
BEGIN | ||
0 | ||
END | ||
|
||
#endif // English (United States) resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
// | ||
//************************************************************************************************ | ||
|
||
|