From 5b3e765af9b3f8c52cd84f60f6778bfd7fe8d5f9 Mon Sep 17 00:00:00 2001 From: sje Date: Mon, 2 Jul 2007 07:35:38 +0000 Subject: added 'create new account' link to options added 'show profile' contact menu item main menu item goes to your myspace page git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@243 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/options.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'MySpace/options.cpp') diff --git a/MySpace/options.cpp b/MySpace/options.cpp index 5d3077c..88c49a3 100644 --- a/MySpace/options.cpp +++ b/MySpace/options.cpp @@ -4,6 +4,8 @@ Options options = {0}; +#define URL_NEW_ACCOUNT "http://signup.myspace.com/index.cfm?fuseaction=join" + void LoadOptions() { DBVARIANT dbv; if(!DBGetContactSettingTString(0, MODULE, "email", &dbv)) { @@ -77,13 +79,16 @@ BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) SetDlgItemText(hwndDlg, IDC_ED_PW, options.pw); return FALSE; case WM_COMMAND: - if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus()) { - switch( LOWORD( wParam )) { + switch( LOWORD( wParam )) { case IDC_ED_EMAIL: case IDC_ED_PW: - SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); - } - break; + if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus()) { + SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); + } + break; + case IDC_LNK_NEWACCOUNT: + CallService(MS_UTILS_OPENURL, (WPARAM)TRUE, (LPARAM)URL_NEW_ACCOUNT); + break; } break; case WM_NOTIFY: -- cgit v1.2.3