51 if (dlg_itm != NULL) {
53 hFont=CreateFont (26, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS,
"Arial");
55 NSLOG(netsurf, INFO,
"Setting font object");
56 SendMessage(dlg_itm, WM_SETFONT, (WPARAM)hFont, 0);
59 snprintf(ver_str,
sizeof(ver_str),
"%s %s",
62 SendMessage(dlg_itm, WM_SETTEXT, 0, (LPARAM)ver_str);
66 if (dlg_itm != NULL) {
67 snprintf(ver_str,
sizeof(ver_str),
"%s",
70 SendMessage(dlg_itm, WM_SETTEXT, 0, (LPARAM)ver_str);
85 if (dlg_itm != NULL) {
86 hFont = (HFONT)SendMessage(dlg_itm, WM_GETFONT, 0, 0);
88 NSLOG(netsurf, INFO,
"Destroyed font object");
108 switch(LOWORD(wparam)) {
110 NSLOG(netsurf, INFO,
"OK clicked");
111 EndDialog(hwnd, IDOK);
115 NSLOG(netsurf, INFO,
"Cancel clicked");
116 EndDialog(hwnd, IDOK);
121 EndDialog(hwnd, IDOK);
126 EndDialog(hwnd, IDOK);
144 int ret = DialogBox(hinst, MAKEINTRESOURCE(
IDD_ABOUT), parent,
static BOOL CALLBACK nsws_about_event_callback(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Localised message support (interface).
static BOOL init_about_dialog(HWND hwnd)
Initialize the about dialog text fields.
nserror win32_warning(const char *warning, const char *detail)
Warn the user of an event.
static BOOL destroy_about_dialog(HWND hwnd)
destroy resources used to create about dialog
#define NSLOG(catname, level, logmsg, args...)
#define IDC_ABOUT_COPYRIGHT
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
HINSTANCE hinst
win32 application instance handle.
Version information interface.
#define LOG_WIN_MSG(h, m, w, l)
log windows message
bool nsws_window_go(HWND hwnd, const char *urltxt)
Cause a browser window to navigate to a url.
#define IDC_ABOUT_VERSION
void nsw32_about_dialog_init(HINSTANCE hinst, HWND parent)