71 nentry->
hwnd = hwndDlg;
88 if (cur->
hwnd == hwndDlg) {
92 "removed hwnd %p entry %p", cur->
hwnd, cur);
99 NSLOG(netsurf, INFO,
"did not find hwnd %p", hwndDlg);
111 while (cur != NULL) {
112 if (IsDialogMessage(cur->
hwnd, lpMsg)) {
113 NSLOG(netsurf, DEBUG,
114 "dispatched dialog hwnd %p", cur->
hwnd);
137 NSLOG(netsurf, INFO,
"Starting messgae dispatcher");
146 bRet = PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE);
150 timer_id = SetTimer(NULL, 0, timeout, NULL);
154 bRet = GetMessage(&Msg, NULL, 0, 0);
158 KillTimer(NULL, timer_id);
165 TranslateMessage(&Msg);
166 DispatchMessage(&Msg);
175 size_t len = 1 + ((warning != NULL) ? strlen(
messages_get(warning)) :
176 0) + ((detail != 0) ? strlen(detail) : 0);
179 MessageBox(NULL, message,
"Warning", MB_ICONWARNING);
191 ((detail != 0) ? strlen(detail) : 0);
194 MessageBox(NULL, message,
"Warning", MB_ICONWARNING);
int schedule_run(void)
Process events up to current time.
Browser window creation and manipulation interface.
Useful interned string pointers (interface).
nserror
Enumeration of error codes.
@ NSERROR_NOT_FOUND
Requested item not found.
@ NSERROR_NOMEM
Memory exhaustion.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get_errorcode(nserror code)
lookup of a message by errorcode from the standard Messages hash.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
struct dialog_list_entry * next
Interface to URL parsing and joining operations.
Default operations table for files.
char ** G_resource_pathv
resource search path vector.
char * G_config_path
path to where all user config files are held.
nserror nsw32_del_dialog(HWND hwndDlg)
remove a modeless dialog from the special handling list
nserror win32_warning(const char *warning, const char *detail)
Warn the user of an event.
nserror nsw32_add_dialog(HWND hwndDlg)
add a modeless dialog to the special handling list
void win32_run(void)
Run the win32 message loop with scheduling.
nserror win32_report_nserror(nserror error, const char *detail)
Warn the user of an unexpected nserror.
static struct dialog_list_entry * dlglist
static nserror handle_dialog_message(LPMSG lpMsg)
walks dialog list and attempts to process any messages for them
void win32_set_quit(bool q)
cause the main message loop to exit
HINSTANCE hinst
win32 application instance handle.