/********************************
* Projekt: Funkuhr DCF77 *
* Eigenschaftsseite ä▄berô *
* Festlegung Erscheinungsbild *
* des Tray-Icons *
********************************/
#include "Funkuhr.h"
#ifndef _M_AMD64
#include <intshcut.h>
#endif
INT_PTR CALLBACK UeberDlgProc(HWND Wnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
DefHelpProc(Wnd,Msg,lParam,104);
switch (Msg) {
// Wie bekommt man webbrowserartige Texte hin? RichEdit! Wirklich?
// Feststellung, ob Computer online: InetIsOffline()
// oder _InternetGetConnectedState()
case WM_INITDIALOG: {
#ifndef _M_AMD64 // Ich finde die AMD64 URL.LIB nicht!
if (InetIsOffline(0)) EnableDlgItem(Wnd,10,FALSE);
#endif
}return TRUE;
case WM_COMMAND: switch (LOWORD(wParam)) {
case 10: {
ShellExecute(Wnd,NULL,
T("http://www.tu-chemnitz.de/~heha/free"),
NULL,NULL,SW_SHOW);
}break;
case 11: {
TCHAR s[64];
lstrcpy(s,T("mailto:"));
GetWindowText((HWND)lParam,s+7,elemof(s)-7);
ShellExecute(Wnd,NULL,s,NULL,NULL,SW_SHOW);
}break;
}break;
}
return FALSE;
}
| Vorgefundene Kodierung: OEM (CP437) | 1 |