diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-02 07:35:38 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-02 07:35:38 +0000 |
commit | 5b3e765af9b3f8c52cd84f60f6778bfd7fe8d5f9 (patch) | |
tree | a2e94c8eb384d88da6a870ed6b87ce5a0d83bdff /MySpace/options.cpp | |
parent | 597c790ab3955f04c039aca5a634428fe5ab01b4 (diff) |
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
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:
|