diff options
Diffstat (limited to 'MySpace/options.cpp')
-rw-r--r-- | MySpace/options.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
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:
|